Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions cli/canyonos/dashboard.compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: canyonos
POSTGRES_USER: canyonos
POSTGRES_PASSWORD: canyonos
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U canyonos -d canyonos"]
interval: 3s
timeout: 3s
retries: 20
api:
image: ${CANYONOS_API_IMAGE}
depends_on:
postgres:
condition: service_healthy
# Published on all interfaces (not just 127.0.0.1) so a GC container can
# actually reach this via host.docker.internal -- Docker's host-gateway
# route doesn't reach ports bound to loopback only, so a 127.0.0.1 bind
Expand All @@ -10,6 +26,7 @@ services:
ports:
- "3000:3000"
environment:
DATABASE_URL: postgres://canyonos:canyonos@postgres:5432/canyonos
JWT_SECRET: ${CANYONOS_JWT_SECRET}
CANYONOS_DISABLE_AUTH: "true"
CANYONOS_REDIS_HOST: ${CANYONOS_REDIS_HOST}
Expand All @@ -24,3 +41,5 @@ services:
condition: service_healthy
ports:
- "127.0.0.1:${CANYONOS_WEB_PORT}:8080"
volumes:
postgres-data:
Loading