-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (54 loc) · 1.4 KB
/
Copy pathdocker-compose.yml
File metadata and controls
57 lines (54 loc) · 1.4 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
services:
# MinIO - S3-compatible storage (for local development)
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
restart: unless-stopped
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
# Backend - FastAPI
backend:
build: ./backend
restart: unless-stopped
ports:
- "8000:8000"
environment:
S3_ENDPOINT: http://minio:9000
S3_ACCESS_KEY: minioadmin
S3_SECRET_KEY: minioadmin
S3_BUCKET: satisfactory-tracker
ASSETS_BUCKET: satisfactory-assets
ASSETS_BASE_URL: http://localhost:9000/satisfactory-assets
CORS_ORIGINS: http://localhost:3000,http://localhost:5173,http://localhost
depends_on:
minio:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/docs"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Frontend - React/Vite (production nginx)
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3000:80"
depends_on:
- backend
volumes:
minio_data: