kycnot.me/docker-compose.yml
2024-02-18 23:47:00 +01:00

54 lines
1.1 KiB
YAML

version: "3.9"
name: "kycnotme_v2024"
networks:
caddy:
external: true
volumes:
pb_data: {}
pb_public: {}
pb_migrations: {}
services:
crawler:
container_name: kycnotme-crawler
build: ./crawler
website:
container_name: kycnotme-website
build: ./src
networks:
caddy: {}
default: {}
volumes:
- ./src/frontend/templates:/app/frontend/templates
env_file:
- .env
labels:
caddy: "${WEB_DOMAIN}"
caddy.reverse_proxy: "{{upstreams 4488}}"
pocketbase:
image: spectado/pocketbase:latest
container_name: kycnotme-pocketbase
restart: unless-stopped
volumes:
- pb_data:/pb_data
- pb_public:/pb_public
networks:
caddy: {}
default:
aliases:
- "pocketbase"
- "database"
labels:
caddy: "${PB_DOMAIN}"
caddy.reverse_proxy: "{{upstreams 80}}"
caddy.request_body.max_size: 10MB
healthcheck: #optional (recommended) since v0.10.0
test: wget --no-verbose --tries=1 --spider http://localhost:80/api/health || exit 1
interval: 5s
timeout: 5s
retries: 5