fp/services/our/compose.production.yaml
CJ_Clippy a58a46d4aa
Some checks failed
ci / build (push) Failing after 1s
ci / Tests & Checks (push) Failing after 1s
use yaml not yml
2025-07-15 06:58:54 -08:00

67 lines
1.2 KiB
YAML

services:
caddy:
image: caddy:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./public:/srv
- ./Caddyfile:/etc/caddy/Caddyfile
networks:
- default
postgres:
container_name: our-postgres
image: postgres:17
restart: unless-stopped
env_file: ./.env
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
retries: 5
start_period: 10s
timeout: 10s
networks:
- default
server:
image: gitea.futureporn.net/futureporn/our:latest
container_name: our-server
ports:
- "5000:5000"
env_file: ./.env
depends_on:
postgres:
condition: service_healthy
networks:
- default
init: true
entrypoint: >
sh -c "npm run deploy && npm run start:server"
worker:
image: gitea.futureporn.net/futureporn/our:latest
container_name: our-worker
env_file: ./.env
depends_on:
postgres:
condition: service_healthy
networks:
- default
init: true
entrypoint: >
sh -c "npm run start:worker"
volumes:
pgdata:
networks:
default: {}