-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose_dev.yml
More file actions
52 lines (45 loc) · 916 Bytes
/
docker-compose_dev.yml
File metadata and controls
52 lines (45 loc) · 916 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
49
50
51
52
version: '3'
services:
db:
image: mysql:8.0.33
restart: always
env_file:
- path: ./env/.env
required: true
# 자동으로 environment 변수를 인식해줌.
environment:
- MYSQL_ROOT_PASSWORD
# - MYSQL_USER
# - MYSQL_PASSWORD
ports:
- "3307:3306"
volumes:
- db-data:/var/lib/mysql
- db-logs:/var/log/mysql
app:
build: .
ports:
- "5000:5000"
env_file:
- path: ./env/.env
required: true
environment:
- DEV_DB_USER
- DEV_DB_PASSWORD
- DEV_DB_PORT
- DEV_DB_NAME
- DEV_DB_HOST=db
restart: always
depends_on:
- db
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- app_log:/app/log
volumes:
app_log:
db-data:
db-logs: