-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 787 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 787 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
version: '3.8'
services:
ratings-aggregator:
build: .
context: .
args:
- VITE_HOME_BLURB=${VITE_HOME_BLURB}
image: ratings-aggregator
container_name: ratings-aggregator
ports:
- "61262:61262"
environment:
- NODE_ENV=production
- PORT=61262
- TMDB_API_KEY=${TMDB_API_KEY}
- REDIS_URL=${REDIS_URL}
- LOG_LEVEL=debug
- VITE_HOME_BLURB=${VITE_HOME_BLURB}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:61262/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
# Redis container for local testing
redis:
image: redis:7-alpine
container_name: ratings-redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
volumes:
redis-data: