-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
45 lines (44 loc) · 1.17 KB
/
compose.yml
File metadata and controls
45 lines (44 loc) · 1.17 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
services:
backend:
# build:
# context: ./backend
# dockerfile: Dockerfile
image: ghcr.io/davidecavestro/dt-xtras/backend:main
ports:
- "8001:8000"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- DT_API_URL=${DT_API_URL}
- DT_FRONTEND_URL=${DT_FRONTEND_URL}
- TAXONOMIES_FILE=${TAXONOMIES_FILE:-/app/data/taxonomies.yaml}
- CORS_ORIGINS=${CORS_ORIGINS}
- CORS_ALLOW_METHODS=${CORS_ALLOW_METHODS}
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
volumes:
- ./data:/app/data
env_file:
- .env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend:
# build:
# context: ./frontend
# dockerfile: Dockerfile
image: ghcr.io/davidecavestro/dt-xtras/frontend:main
ports:
- "3001:3000"
depends_on:
backend:
condition: service_healthy
environment:
- VITE_API_URL=http://localhost:8001
- BACKEND_API_URL=${BACKEND_API_URL}
- DT_API_URL=${DT_API_URL}
- DT_FRONTEND_URL=${DT_FRONTEND_URL}
env_file:
- .env