Major refactoring of build_deploy action, along with docker building and packaging improvements. Added no_signups and other .env improvements. There is no longer a separate .env.dev, both use .env now.

This commit is contained in:
badblocks 2025-05-18 11:27:59 -07:00
parent 76b2becc24
commit 6f57699c8d
28 changed files with 795 additions and 328 deletions

View file

@ -1,30 +1,24 @@
services:
loba:
image: haproxy:3.1
stop_signal: SIGTERM
ports:
- 8000:8000
volumes:
- ./haproxy/haproxy.dev.cfg:/usr/local/etc/haproxy/haproxy.cfg
depends_on:
- web
web:
build: .
command: ["django-admin", "runserver", "0.0.0.0:8000"]
ports:
- 8000:8000
restart: always
volumes:
- ./.env.dev:/.env:ro
- ./seed:/seed:ro
env_file:
- .env.dev
- .env
environment:
- DEBUG=true
- PUBLIC_HOST=localhost
- ALLOWED_HOSTS=127.0.0.1,localhost
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
db:
image: postgres:16
restart: always
ports:
- 5432:5432
volumes: