version: "3.8" services: invoice-generator: environment: - NODE_ENV=production labels: - "com.docker.compose.service=invoice-generator" - "com.docker.compose.environment=production" logging: driver: "json-file" options: max-size: "10m" max-file: "3" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:80/"] interval: 30s timeout: 10s retries: 3 start_period: 40s deploy: resources: limits: memory: 512M cpus: "0.5" reservations: memory: 256M cpus: "0.25" security_opt: - no-new-privileges:true read_only: true tmpfs: - /tmp - /var/cache/nginx - /var/run - /run - /var/log/nginx