-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (66 loc) · 1.29 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
version: '3.0'
services:
app_js:
image: nduuboi/truthordare:latest
container_name: truthordare
ports:
- "${APP_PORT}:3000"
env_file:
- db_log.env
- pma.env
- api_token.env
depends_on:
db:
condition: service_healthy
restart: always
networks:
- result-tier
api_js:
image: nduuboi/truthordareapi:latest
container_name: truthordare_api
env_file:
- db_log.env
- pma.env
- api_token.env
depends_on:
db:
condition: service_healthy
restart: always
networks:
- result-tier
db:
image: mysql:latest
restart: always
container_name: database
env_file:
- db_log.env
ports:
- "3306"
volumes:
- ./data_table.sql:/docker-entrypoint-initdb.d/setup.sql
- db-data:/var/lib/mysql
networks:
- result-tier
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 2s
timeout: 1s
retries: 30
phpmyadmin:
image: phpmyadmin
container_name: PHPmyAdmin
networks:
- result-tier
env_file:
- pma.env
restart: always
ports:
- 8081:80
depends_on:
db:
condition: service_healthy
networks:
result-tier:
volumes:
db-data:
driver: local