-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
49 lines (46 loc) · 1.2 KB
/
docker-compose.dev.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
services:
backend:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "8080:8080"
environment:
DB_URL: ${DB_URL}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
JWT_SECRET: ${JWT_SECRET}
ACCESS_KEY: ${ACCESS_KEY}
SECRET_KEY: ${SECRET_KEY}
OCR_API_SECRET: ${OCR_API_SECRET}
OCR_API_URL: ${OCR_API_URL}
OCR_TEMPLATE_IDS: ${OCR_TEMPLATE_IDS}
MEDICAL_CERTIFICATE_OCR_API_SECRET_KEY: ${MEDICAL_CERTIFICATE_OCR_API_SECRET_KEY}
MEDICAL_CERTIFICATE_OCR_API_URL: ${MEDICAL_CERTIFICATE_OCR_API_URL}
KAKAOPAY_SECRET_KEY: ${KAKAOPAY_SECRET_KEY}
CID: ${CID}
SPRING_PROFILES_ACTIVE: dev
depends_on:
db:
condition: service_healthy
networks:
- app-network
db:
image: mysql:8.0
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
healthcheck:
test: ["CMD", "mysqladmin", "ping"]
interval: 5s
timeout: 10s
retries: 40
networks:
- app-network
networks:
app-network:
driver: bridge