-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
80 lines (73 loc) · 1.42 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
networks:
main:
volumes:
mysql:
www:
x-app-base:
&app-base
image: skaut/lebeda:8.3
volumes:
- www:/var/www
- .:/var/www/html
environment:
DEVELOPMENT_MACHINE: 'true'
networks:
main:
aliases:
- srs.loc
services:
app:
<<: *app-base
container_name: srs.app
depends_on:
mysql:
condition: service_healthy
app-test:
<<: *app-base
container_name: srs.app-test
depends_on:
mysql-test:
condition: service_healthy
mysql:
container_name: srs.mysql
image: mysql:8.0
volumes:
- mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_DATABASE: srs
TZ: Europe/Paris
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10
networks:
main:
aliases:
- mysql
mysql-test:
container_name: srs.mysql-test
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_DATABASE: srs
TZ: Europe/Paris
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10
networks:
main:
aliases:
- mysql-test
smtp:
container_name: srs.smtp
image: tophfr/mailcatcher
environment:
SMTP_HOST: smtp-srs.loc
networks:
main:
aliases:
- smtp-srs.loc
ports:
- 1080:80