services: app: image: ${IMAGE} container_name: me-app networks: - proxy expose: - 80 environment: - VIRTUAL_HOST=${VIRTUAL_HOST} - VIRTUAL_PORT=${VIRTUAL_PORT} - LETSENCRYPT_HOST=${LETSENCRYPT_HOST} - LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL} restart: unless-stopped read_only: true security_opt: - no-new-privileges:true deploy: resources: limits: memory: 512M cpus: '0.50' tmpfs: - /tmp - /app/.next/cache healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost:80/"] interval: 30s timeout: 10s retries: 3 start_period: 10s networks: proxy: external: true