Finish packaging and change to src-based packaging layout, replace caddy with haproxy for performance, and update docker-compose and Dockerfiles for new packaging.

This commit is contained in:
badblocks 2025-05-09 18:39:04 -07:00
parent 959b06c425
commit 762361a21b
210 changed files with 235 additions and 168 deletions

View file

@ -1,26 +1,21 @@
services:
loba:
image: lucaslorentz/caddy-docker-proxy:2.9
image: haproxy:3.1
stop_signal: SIGTERM
ports:
- 8000:8000
- 443:443
entrypoint: ["/usr/local/bin/haproxy.entrypoint.sh"]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- caddy_data:/data
- ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
- ./scripts/haproxy.entrypoint.sh:/usr/local/bin/haproxy.entrypoint.sh
depends_on:
- web
web:
build: .
volumes:
- ./seed:/seed:ro
- ./.env.production:/.env:ro
env_file:
- .env.production
deploy:
mode: replicated
replicas: 4
labels:
caddy: ":8000"
caddy.reverse_proxy: "{{upstreams 8000}}"
volumes:
caddy_data:
replicas: 4