-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.08 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
services:
nginx:
image: nginx:stable-alpine
ports:
- "80:80"
volumes:
- ./sites:/var/www
- ./config/nginx:/etc/nginx/conf.d
- ./data/logs:/var/log/nginx/
depends_on:
- php
- db
php:
build:
context: ./config/php
dockerfile: Dockerfile
volumes:
- ./sites:/var/www
- ./config/php/php.ini:/usr/local/etc/php/php.ini
ports:
- "9000:9000"
db:
image: mariadb:latest
restart: unless-stopped
ports:
- '53003:3306'
volumes:
- ./data/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: secret
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- '8080:80'
restart: always
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: secret
depends_on:
- db
mailhog:
image: mailhog/mailhog
logging:
driver: 'none'
ports:
- 1025:1025
- 8025:8025