# Production: one container (API + web app). Same image recipe as QA (deploy/qa/Dockerfile) built in production mode # (web/.env.production). A reverse proxy publishes it over https; see apache-ntp.conf. # Run from this folder after creating .env (copy .env.example): docker compose up -d --build services: ntp: # Jenkins sets NTP_IMAGE to /ntpv2:; the production server only pulls it (docker compose pull). image: ${NTP_IMAGE:-ntpv2:prod} container_name: ntpv2-prod build: context: ../.. dockerfile: deploy/qa/Dockerfile args: WEB_MODE: build:prod restart: unless-stopped env_file: .env environment: ASPNETCORE_ENVIRONMENT: Production ports: # change the left side (or set NTP_PORT in .env) when 8081 is taken; use 127.0.0.1: when the proxy runs on this host - "127.0.0.1:${NTP_PORT:-8081}:8080" volumes: # attachments (trucks / trailers / drivers): the host folder /mnt/NTPFiles is read and written by the API at the same path - /mnt/NTPFiles:/mnt/NTPFiles