Initial commit: docker compose for frame stack

This commit is contained in:
2026-03-21 23:34:52 +01:00
commit e90d4292d5
4 changed files with 148 additions and 0 deletions

39
docker-compose.yml Normal file
View File

@@ -0,0 +1,39 @@
services:
postgres:
image: postgres:18-alpine
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-appdb}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- ./data/postgres:/var/lib/postgresql/data
frame-backend:
image: docker.panic.haus/frame-backend:latest
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
env_file:
- backend.env
ports:
- "${BACKEND_PORT:-8080}:8080"
frame-cms:
image: docker.panic.haus/frame-cms:latest
restart: unless-stopped
depends_on:
- frame-backend
ports:
- "${CMS_PORT:-3000}:80"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost/"]
interval: 30s
timeout: 5s
retries: 3