version: '3.8' services: chefbible: image: git.redbackpack.ca/taogaetz/chefbible:latest container_name: chefbible restart: unless-stopped ports: - "4000:3000" environment: - NODE_ENV=production - DATABASE_URL=file:/app/data/database.db - MAGIC_LINK_TOKEN=${MAGIC_LINK_TOKEN} - CLOUDINARY_URL=${CLOUDINARY_URL} - ORIGIN=${ORIGIN} volumes: - /home/chefbible/data:/app/data healthcheck: test: [ "CMD", "node", "-e", "require('http').get('http://localhost:3000/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })" ] interval: 30s timeout: 10s retries: 3 start_period: 40s