forked from ubershmekel/redditp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
40 lines (32 loc) · 866 Bytes
/
docker-compose.local.yml
File metadata and controls
40 lines (32 loc) · 866 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
# Local development docker-compose file
# Use: docker-compose -f docker-compose.local.yml up -d
services:
redditp:
# Build from local Dockerfile
build:
context: .
dockerfile: Dockerfile
container_name: redditp-local
# Port mapping for local access
ports:
- "8080:8080"
# Environment variables
environment:
- NODE_ENV=development
- PORT=8080
# Restart policy
restart: unless-stopped
# Health check
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Logging configuration
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# No external networks needed for local development