-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
88 lines (83 loc) · 1.71 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
80
81
82
83
84
85
86
87
88
services:
php-fpm:
build: .
container_name: rep.php
working_dir: /app
user: ${CURRENT_UID}
networks:
default:
aliases:
- mapped-repair-events.test
nginx-frontproxy:
volumes:
- ./:/app
depends_on:
- mysql-test
environment:
WEB_DOCUMENT_ROOT: /app/webroot
ports:
- "8113:80"
mysql-dev:
image: mysql:8.0
container_name: rep.mysql.dev
working_dir: /app
volumes:
- rep_db:/var/lib/mysql
env_file:
- mysql.env
ports:
- "3330:3306"
environment:
MYSQL_TCP_PORT: 3330
networks:
- nginx-frontproxy
mysql-test:
image: mysql:8.0
container_name: rep.mysql.test
restart: always
tmpfs: /var/lib/mysql:exec,size=1G #smaller size (eg. 256M) lead to failing tests
ports:
- '3331:3306'
env_file:
- mysql.env
environment:
MYSQL_TCP_PORT: 3331
networks:
- nginx-frontproxy
phpmyadmin-dev:
depends_on:
- mysql-dev
image: phpmyadmin/phpmyadmin
container_name: rep.phpmyadmin-dev
restart: always
ports:
- '8122:80'
environment:
PMA_HOST: mysql-dev
PMA_USER: my_user
PMA_PASSWORD: password
PMA_PORT: 3330
UPLOAD_LIMIT: 300M
networks:
- nginx-frontproxy
phpmyadmin-test:
depends_on:
- mysql-test
image: phpmyadmin/phpmyadmin
container_name: rep.phpmyadmin-test
restart: always
ports:
- '8123:80'
environment:
PMA_HOST: mysql-test
PMA_USER: my_user
PMA_PASSWORD: password
PMA_PORT: 3331
UPLOAD_LIMIT: 300M
networks:
- nginx-frontproxy
volumes:
rep_db:
external: false
networks:
nginx-frontproxy: