-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (79 loc) · 1.96 KB
/
docker-compose.yml
File metadata and controls
85 lines (79 loc) · 1.96 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3.8'
services:
# PostgreSQL (メタデータDB)
postgres:
image: postgres:15-alpine
container_name: ilm_postgres
environment:
POSTGRES_DB: ilm_athens
POSTGRES_USER: ilm_user
POSTGRES_PASSWORD: "complexpassword123"
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ilm_user -d ilm_athens"]
interval: 10s
timeout: 5s
retries: 5
networks:
- ilm_network
# Redis (キャッシュ)
redis:
image: redis:7-alpine
container_name: ilm_redis
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- ilm_network
# FastAPI バックエンド (推論エンジンを内包)
backend:
build:
context: .
dockerfile: backend/Dockerfile
container_name: ilm_backend
volumes:
- .:/app # 開発中のホットリロード用
ports:
- "8000:8000"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- DATABASE_URL=postgresql://ilm_user:complexpassword123@postgres:5432/ilm_athens
- REDIS_URL=redis://redis:6379
- SECRET_KEY=a-very-secret-key-for-jwt
- DEEPSEEK_API_URL=http://host.docker.internal:11434
- DEEPSEEK_MODEL_NAME=deepseek-r1:32b
- DB_PATH=ilm_athens_medical_db.iath
- DEBUG=True
command: uvicorn backend.app.main:app --host 0.0.0.0 --port 8000
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
networks:
- ilm_network
# React フロントエンド
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
container_name: ilm_frontend
ports:
- "5173:80"
depends_on:
- backend
networks:
- ilm_network
volumes:
postgres_data:
networks:
ilm_network:
driver: bridge