25 lines
601 B
YAML
25 lines
601 B
YAML
name: ${COMPOSE_PROJECT_NAME:-diyaa}
|
|
|
|
services:
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: ${CONTAINER_NAME:-diyaa}
|
|
ports:
|
|
- "${APP_PORT:-30002}:3000"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
NODE_ENV: ${NODE_ENV:-production}
|
|
PORT: 3000
|
|
HOSTNAME: 0.0.0.0
|
|
NEXT_TELEMETRY_DISABLED: ${NEXT_TELEMETRY_DISABLED:-1}
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:3000/api/health || exit 1"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 20s
|
|
restart: unless-stopped
|