version: "3.8" services: app: build: context: . dockerfile: Dockerfile ports: - "${APP_PORT:-3000}:3000" environment: NODE_ENV: production SQLITE_DB_PATH: /app/data/db.db APP_PORT: 3000 volumes: - ./data:/app/data restart: unless-stopped healthcheck: test: [ "CMD", "node", "-e", "const http = require('http'); const req = http.request({hostname: 'localhost', port: 3000, path: '/api/users', method: 'GET'}, (res) => { process.exit(res.statusCode === 200 ? 0 : 1); }); req.on('error', () => process.exit(1)); req.end();", ] interval: 30s timeout: 10s retries: 3 start_period: 10s volumes: data: driver: local