-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (54 loc) · 1.16 KB
/
docker-compose.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
50
51
52
53
54
55
56
57
58
services:
mysql:
image: mysql:8-oracle
container_name: mysql
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 5s
retries: 10
networks:
- app-network
spring-server:
image: ht3064/spring-server:latest
container_name: spring-server
hostname: spring-server
depends_on:
mysql:
condition: service_healthy
ports:
- "8080:8080"
env_file:
- .env
networks:
- app-network
redis:
image: redis:alpine
container_name: redis
restart: always
ports:
- "6379:6379"
environment:
- TZ=Asia/Seoul
networks:
- app-network
react:
image: jaehongpark04/syncfit-react:latest
platform: linux/amd64
container_name: react
ports:
- "5173:80"
networks:
- app-network
networks:
app-network:
driver: bridge