-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.14 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
services:
app:
build: .
container_name: mondegc_app
ports:
- "80:80"
tty: true
volumes:
- ../:/var/www/html:cached
depends_on:
- mysql
- mailhog
mysql:
image: mysql:5.7
container_name: mondegc_mysql
ports:
- "3306:3306"
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/entrypoint:/docker-entrypoint-initdb.d
command:
- --default-authentication-plugin=mysql_native_password
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --sql-mode=IGNORE_SPACE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: "%"
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: mondegc_phpmyadmin
environment:
PMA_HOST: mysql
PMA_PORT: 3306
UPLOAD_LIMIT: 64M
ports:
- "8080:80"
links:
- mysql
mailhog:
image: mailhog/mailhog
container_name: mondegc_mailhog
logging:
driver: "none" # disable saving logs
ports:
- "1025:1025" # smtp server
- "8025:8025" # web ui