docker-compose.yml 923 B

123456789101112131415161718192021222324252627282930
  1. # =============================================================================
  2. # Jenado Unlimited Website - Docker Compose
  3. # Orchestrates the production container locally for testing.
  4. # =============================================================================
  5. services:
  6. web:
  7. build:
  8. context: .
  9. dockerfile: Dockerfile
  10. image: jenado-unlimited:latest
  11. container_name: jenado-unlimited
  12. ports:
  13. - "3000:3000"
  14. environment:
  15. - NODE_ENV=production
  16. - PORT=3000
  17. # Pass runtime secrets via a .env file or environment variables.
  18. # Never bake secrets into the image.
  19. # Example: RESEND_API_KEY=${RESEND_API_KEY}
  20. env_file:
  21. - path: .env
  22. required: false
  23. restart: unless-stopped
  24. healthcheck:
  25. test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/health"]
  26. interval: 30s
  27. timeout: 5s
  28. start_period: 15s
  29. retries: 3