fix ports

This commit is contained in:
2026-06-09 18:44:22 -04:00
parent 04a1f2bb6d
commit c7dafae806
4 changed files with 175 additions and 44 deletions

View File

@@ -4,10 +4,11 @@ services:
context: .
dockerfile: Dockerfile
ports:
- "$PORT:$PORT"
- "${PORT:-8080}:${PORT:-8080}"
depends_on:
- mailpit
environment:
PORT: "${PORT:-8080}"
CAIRNQUIRE_DATABASE_PATH: "/workspace/data/db.sqlite"
CAIRNQUIRE_CONTENT_SOURCE_DIR: "/workspace/content"
CAIRNQUIRE_CONTENT_STORE_DIR: "/workspace/data/files"
@@ -20,7 +21,7 @@ services:
- cairnquire_data:/workspace/data
- ./content:/workspace/content
healthcheck:
test: ["CMD", "curl", "--fail", "http://127.0.0.1:${PORT}/healthz"]
test: ["CMD", "curl", "--fail", "http://127.0.0.1:${PORT:-8080}/healthz"]
interval: 10s
timeout: 3s
retries: 5