-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (35 loc) · 843 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (35 loc) · 843 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
services:
db:
image: mysql:8.0
environment:
MYSQL_DATABASE: acme_db
MYSQL_ROOT_PASSWORD: 2106
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 10
backend:
build:
context: ./backend
depends_on:
db:
condition: service_healthy
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://db:3306/acme_db?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: 2106
SPRING_FLYWAY_ENABLED: "true"
ports:
- "9091:8080"
frontend:
build:
context: ./storyspark-content-hub-main
ports:
- "8081:80"
depends_on:
- backend
volumes:
mysql_data: