forked from PAWECOGmbH/saaster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (75 loc) · 1.86 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"
services:
cfml:
container_name: cfml-saaster
image: ortussolutions/commandbox
restart: always
environment:
PORT: ${CFML_PORT}
SSL_PORT: ${CFML_SSL_PORT}
volumes:
- "./:/app"
ports:
- 127.0.0.1:${CFML_PORT}:80
- 127.0.0.1:${CFML_SSL_PORT}:443
networks:
- backend
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
interval: 1m30s
timeout: 5s
retries: 10
start_period: 25s
mysql:
container_name: mysql-saaster
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- "./db/init:/docker-entrypoint-initdb.d"
ports:
- 127.0.0.1:${MYSQL_PORT}:3306
networks:
- backend
command:
[
"--sql_mode=",
"--innodb_strict_mode=OFF",
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci",
"--default-authentication-plugin=mysql_native_password"
]
healthcheck:
test: mysqladmin ping -h mysql -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
mailslurper:
container_name: mail-saaster
image: marcopas/docker-mailslurper
restart: always
ports:
- "127.0.0.1:2500:2500"
- "127.0.0.1:9000:8080"
- "127.0.0.1:8085:8085"
networks:
- backend
db_seeder:
container_name: seeder-saaster
image: mysql:5.7
volumes:
- ./db/dev/${MYSQL_SEED_FILE}:/db.sql
entrypoint:
[
"bash",
"-c",
"mysql --user=${MYSQL_USER} --password=${MYSQL_PASSWORD} --host=${MYSQL_HOST} --port=3306 ${MYSQL_DATABASE} < db.sql && exit"
]
depends_on:
- mysql
networks:
- backend
networks:
backend:
driver: bridge