-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (64 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
68 lines (64 loc) · 1.5 KB
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
59
60
61
62
63
64
65
66
67
68
services:
db:
image: mysql:8.0
container_name: mysql-db
restart: always
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: passw0rd
MYSQL_DATABASE: clubfinder
volumes:
- ./my.cnf:/etc/mysql/conf.d/my.cnf:ro
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "db", "-uroot", "-ppassw0rd"]
interval: 5s
timeout: 10s
retries: 10
ai:
build:
context: ./ai
dockerfile: Dockerfile
container_name: ai-server
ports:
- "8000:8000"
environment:
OPENAI_API_KEY: ${OPENAI_API_KEY}
# volumes:
# - ./ai:/app
depends_on:
- db
back:
build:
context: ./backend
dockerfile: Dockerfile
container_name: back-server
ports:
- "8080:8080"
# volumes:
# - ./backend:/app # 🔄 로컬 backend 코드 디렉토리 ↔ 컨테이너 /app
depends_on:
db:
condition: service_healthy
ai:
condition: service_started
environment:
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE}
ADMIN_ID: ${ADMIN_ID}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
front:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: front-server
ports:
- "5173:80"
# volumes:
# - ./frontend:/app
depends_on:
- ai
- back
- db
volumes:
db-data: