services: server: image: gitea.futureporn.net/futureporn/our:latest depends_on: - postgres init: true command: > sh -c "npx prisma migrate deploy && npm run start:server" volumes: - /mnt/vfs/futureporn:/mnt/vfs/futureporn # blue/green ports get published in those respective compose fragments worker: image: gitea.futureporn.net/futureporn/our:latest depends_on: - postgres init: true entrypoint: > sh -c "npm run start:worker" volumes: - /mnt/vfs/futureporn:/mnt/vfs/futureporn deploy: replicas: 2 restart_policy: condition: on-failure delay: 5s max_attempts: 5 window: 60s update_config: parallelism: 1 delay: 10s resources: limits: cpus: "0.5" memory: 2G qbittorrent: image: gitea.futureporn.net/futureporn/qbittorrent-nox:latest init: false volumes: - /mnt/vfs/futureporn:/mnt/vfs/futureporn networks: default: external: true name: our-shared-net