Spaces:
Build error
Build error
File size: 496 Bytes
65c09e3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- PORT=3001
# Environment variables from file
env_file:
- .env.docker
restart: unless-stopped
# For production, consider adding healthcheck
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s |