cmvr-wms/mobile-app/deploy/docker-compose.yml

39 lines
998 B
YAML
Raw Normal View History

name: cmvr-mobile-ota
services:
ota:
image: ${OTA_NODE_IMAGE:?Set a verified Node image digest}
pull_policy: never
container_name: cmvr-mobile-ota-prod
restart: unless-stopped
user: "1000:1000"
read_only: true
cap_drop: [ALL]
security_opt: [no-new-privileges:true]
pids_limit: 64
mem_limit: 128m
cpus: 0.5
working_dir: /app
command: [node, /app/server.mjs]
environment:
NODE_ENV: production
OTA_ENVIRONMENT: prod
OTA_DATA_DIR: /data
OTA_HOST: 0.0.0.0
OTA_PORT: 8090
ports:
- "127.0.0.1:8190:8090"
volumes:
- ./current/server.mjs:/app/server.mjs:ro
- ./data:/data:ro
healthcheck:
test: [CMD, node, -e, "fetch('http://127.0.0.1:8090/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
interval: 30s
timeout: 5s
start_period: 5s
retries: 3
logging:
driver: json-file
options:
max-size: 5m
max-file: "3"