-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 897 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (40 loc) · 897 Bytes
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
version: '3.8'
services:
# Redis cache and job queue
redis:
image: redis:7-alpine
container_name: trip-planner-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 3
# Backend API
api:
build:
context: ./backend
dockerfile: Dockerfile
container_name: trip-planner-api
ports:
- "4000:4000"
environment:
- PARALLEL_API_KEY=${PARALLEL_API_KEY}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- REDIS_URL=redis://redis:6379
- HOST=0.0.0.0
- PORT=4000
- DEBUG=True
depends_on:
redis:
condition: service_healthy
volumes:
- ./backend/src:/app/src:ro
restart: unless-stopped
volumes:
redis_data:
driver: local