-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (45 loc) · 915 Bytes
/
docker-compose.yaml
File metadata and controls
48 lines (45 loc) · 915 Bytes
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
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: tcg_app
ports:
- "8081:5000"
env_file:
- .env
volumes:
- .:/tcg_app
restart: unless-stopped
command: >
sh -c "flask db upgrade && flask run --host=0.0.0.0"
depends_on:
mysql:
condition: service_healthy
mysql:
image: mysql:latest
container_name: tcg_mysql
env_file:
- .env
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
restart: unless-stopped
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "tcg_mysql"]
interval: 5s
timeout: 5s
retries: 5
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: tcg_phpmyadmin
env_file:
- .env
ports:
- "8080:80"
restart: unless-stopped
depends_on:
- mysql
volumes:
mysql_data: