-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 878 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 878 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
services:
mysql-prod:
container_name: flow-mysql
image: mysql:8.0.36
restart: unless-stopped
env_file: .env.mysql
environment:
MYSQL_ROOT_PASSWORD: ${ROOT_PASSWORD}
TZ: Asia/Seoul
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
volumes:
- ./docker_volume/mysql/data:/var/lib/mysql
- ./init_db/:/docker-entrypoint-initdb.d/
# profiles: [initdb]
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
networks:
- flow-net
express:
container_name: flow-express
build:
context: ./
dockerfile: Dockerfile.express
ports:
- "8080:3001"
networks:
- flow-net
depends_on:
mysql-prod:
condition: service_healthy
networks:
flow-net:
name: flow-net