-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
43 lines (42 loc) · 942 Bytes
/
docker-compose.yaml
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
version: "3"
services:
mysql:
container_name: wanted-mysql
image: mysql:latest
restart: always
volumes:
- mysql_volume:/app/mysql
environment:
- MYSQL_ROOT_PASSWORD=1234
- MYSQL_DATABASE=wanted_api
- MYSQL_PASSWORD=1234
ports:
- "3306:3306"
networks:
- wanted-api
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
backend:
container_name: wanted-backend
ports:
- "8080:8080"
image: choihyoungwoo/wanted-onboarding-backend:1.6
volumes:
- backend_images:/app/backend/images
networks:
- wanted-api
depends_on:
mysql:
condition: service_healthy
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://15.164.204.138:3306/wanted_api
networks:
wanted-api:
driver: bridge
volumes:
mysql_volume:
driver: local
backend_images:
driver: local