-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
79 lines (73 loc) · 1.74 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: "3.8"
services:
db:
container_name: "${DB_NAME}_mysql"
image: mysql:latest
command:
[
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_general_ci",
"--default-authentication-plugin=mysql_native_password",
]
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER_NAME}
MYSQL_PASSWORD: ${DB_USER_PASSWORD}
ports:
- "${DB_PORT}:3306"
volumes:
- db_data:/var/lib/mysql
restart: always
php:
container_name: "${DB_NAME}_php"
build:
context: ./php
args:
GIT_USEREMAIL: ${GIT_USEREMAIL}
GIT_USERNAME: ${GIT_USERNAME}
image: "docker_${DB_NAME}_php"
ports:
- "${PHP_PORT}:9000"
volumes:
- ./app:/var/www/docker_sf
extra_hosts:
- host.docker.internal:host-gateway
depends_on:
- db
nginx:
container_name: "${DB_NAME}_nginx"
image: nginx:stable-alpine
ports:
- "${HTTP_PORT}:80"
volumes:
- ./app:/var/www/docker_sf
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- db
phpmyadmin:
container_name: "${DB_NAME}_phpmyadmin"
image: phpmyadmin/phpmyadmin:latest
links:
- db
depends_on:
- db
ports:
- "${PHPMYADMIN_PORT}:80"
environment:
PMA_ARBITRARY: 1
PMA_HOST: db
PMA_USER: ${DB_USER_NAME}
PMA_PASSWORD: ${DB_USER_PASSWORD}
UPLOAD_LIMIT: 20M
restart: always
maildev:
container_name: "${DB_NAME}_maildev"
image: maildev/maildev
command: bin/maildev --web 80 --smtp 25 --hide-extensions STARTTLS
ports:
- "${MAILDEV_PORT}:80"
restart: always
volumes:
db_data: