new-react / docker-compose.yml
noumanjavaid's picture
Upload 23 files
65c09e3 verified
raw
history blame contribute delete
496 Bytes
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