feat: add Docker deployment with HAProxy and blue-green strategy

This commit is contained in:
badblocks 2025-07-21 23:25:19 -07:00
parent 3cfa59d3a5
commit 5be1e5add5
No known key found for this signature in database
26 changed files with 56198 additions and 582 deletions

24
docker-compose.yml Normal file
View file

@ -0,0 +1,24 @@
services:
portfolio:
build: .
image: badbl0cks/portfolio
ports:
- "3000:3000"
env_file:
- .env
environment:
- PUID=1000
- PGID=1000
volumes:
- ./data:/app/data
restart: unless-stopped
networks:
proxynet:
aliases:
- portfolio-${RELEASE_TYPE}
healthcheck:
test: ["CMD", "curl", "-f", "-s", "--max-time", "5", "http://localhost:3000/api/health"]
interval: 30s
timeout: 15s
retries: 3
start_period: 120s