fp/services/our/compose.production.yaml
CJ_Clippy d61b0082a5
Some checks failed
ci / test (push) Failing after 1m4s
ci / build (push) Successful in 55m33s
dont use default network
2025-09-27 00:40:39 -08:00

59 lines
1.2 KiB
YAML

services:
postgres:
container_name: our-postgres
image: postgres:17
restart: unless-stopped
env_file: ./.env
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
retries: 5
start_period: 10s
timeout: 10s
server:
image: gitea.futureporn.net/futureporn/our:latest
container_name: our-server
env_file: ./.env
depends_on:
postgres:
condition: service_healthy
pull_policy: always
init: true
entrypoint: >
sh -c "npx prisma migrate deploy && npm run start:server"
volumes:
- /mnt/vfs/futureporn:/mnt/vfs/futureporn
worker:
image: gitea.futureporn.net/futureporn/our:latest
container_name: our-worker
env_file: ./.env
depends_on:
postgres:
condition: service_healthy
pull_policy: always
init: true
entrypoint: >
sh -c "npm run start:worker"
volumes:
- /mnt/vfs/futureporn:/mnt/vfs/futureporn
qbittorrent:
image: gitea.futureporn.net/futureporn/qbittorrent-nox:latest
container_name: qbittorrent
env_file: ./.env
init: false
volumes:
- /mnt/vfs/futureporn:/mnt/vfs/futureporn
volumes:
pgdata: