mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-02-09 21:13:09 +00:00
ops: do not publish demo db port
This commit is contained in:
parent
60275b9926
commit
a78d974ad4
1 changed files with 63 additions and 65 deletions
128
compose/demo.yml
128
compose/demo.yml
|
|
@ -1,65 +1,63 @@
|
||||||
version: "3.9"
|
version: "3.9"
|
||||||
|
|
||||||
# Demo deployment - includes demo users, seed data, and restricted actions
|
# Demo deployment - includes demo users, seed data, and restricted actions
|
||||||
# Usage: podman-compose --env-file compose/.env.demo -f compose/demo.yml up -d
|
# Usage: podman-compose --env-file compose/.env.demo -f compose/demo.yml up -d
|
||||||
# Reset: podman-compose --env-file compose/.env.demo -f compose/demo.yml down -v; podman-compose --env-file compose/.env.demo -f compose/demo.yml up -d
|
# Reset: podman-compose --env-file compose/.env.demo -f compose/demo.yml down -v; podman-compose --env-file compose/.env.demo -f compose/demo.yml up -d
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16
|
image: postgres:16
|
||||||
container_name: likwid-demo-db
|
container_name: likwid-demo-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
environment:
|
||||||
- "${DB_PORT:-5433}:5432"
|
POSTGRES_USER: ${POSTGRES_USER:-likwid_demo}
|
||||||
environment:
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-demo_secret_change_me}
|
||||||
POSTGRES_USER: ${POSTGRES_USER:-likwid_demo}
|
POSTGRES_DB: ${POSTGRES_DB:-likwid_demo}
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-demo_secret_change_me}
|
volumes:
|
||||||
POSTGRES_DB: ${POSTGRES_DB:-likwid_demo}
|
- likwid_demo_data:/var/lib/postgresql/data
|
||||||
volumes:
|
healthcheck:
|
||||||
- likwid_demo_data:/var/lib/postgresql/data
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-likwid_demo}"]
|
||||||
healthcheck:
|
interval: 10s
|
||||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-likwid_demo}"]
|
timeout: 5s
|
||||||
interval: 10s
|
retries: 5
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
backend:
|
||||||
|
build:
|
||||||
backend:
|
context: ../backend
|
||||||
build:
|
dockerfile: Dockerfile
|
||||||
context: ../backend
|
args:
|
||||||
dockerfile: Dockerfile
|
INCLUDE_DEMO_SEED: "true"
|
||||||
args:
|
container_name: likwid-demo-backend
|
||||||
INCLUDE_DEMO_SEED: "true"
|
restart: unless-stopped
|
||||||
container_name: likwid-demo-backend
|
ports:
|
||||||
restart: unless-stopped
|
- "${BACKEND_PORT:-3001}:3000"
|
||||||
ports:
|
environment:
|
||||||
- "${BACKEND_PORT:-3001}:3000"
|
DATABASE_URL: postgres://${POSTGRES_USER:-likwid_demo}:${POSTGRES_PASSWORD:-demo_secret_change_me}@postgres:5432/${POSTGRES_DB:-likwid_demo}
|
||||||
environment:
|
JWT_SECRET: ${JWT_SECRET:-demo_jwt_secret_not_for_production}
|
||||||
DATABASE_URL: postgres://${POSTGRES_USER:-likwid_demo}:${POSTGRES_PASSWORD:-demo_secret_change_me}@postgres:5432/${POSTGRES_DB:-likwid_demo}
|
SERVER_HOST: 0.0.0.0
|
||||||
JWT_SECRET: ${JWT_SECRET:-demo_jwt_secret_not_for_production}
|
SERVER_PORT: 3000
|
||||||
SERVER_HOST: 0.0.0.0
|
DEMO_MODE: "true"
|
||||||
SERVER_PORT: 3000
|
RUST_LOG: info
|
||||||
DEMO_MODE: "true"
|
depends_on:
|
||||||
RUST_LOG: info
|
postgres:
|
||||||
depends_on:
|
condition: service_healthy
|
||||||
postgres:
|
|
||||||
condition: service_healthy
|
frontend:
|
||||||
|
build:
|
||||||
frontend:
|
context: ../frontend
|
||||||
build:
|
dockerfile: Dockerfile
|
||||||
context: ../frontend
|
args:
|
||||||
dockerfile: Dockerfile
|
API_BASE: ${API_BASE:-http://localhost:3001}
|
||||||
args:
|
container_name: likwid-demo-frontend
|
||||||
API_BASE: ${API_BASE:-http://localhost:3001}
|
restart: unless-stopped
|
||||||
container_name: likwid-demo-frontend
|
ports:
|
||||||
restart: unless-stopped
|
- "${FRONTEND_PORT:-4322}:4321"
|
||||||
ports:
|
environment:
|
||||||
- "${FRONTEND_PORT:-4322}:4321"
|
INTERNAL_API_BASE: http://backend:3000
|
||||||
environment:
|
API_BASE: ${API_BASE:-http://localhost:3001}
|
||||||
INTERNAL_API_BASE: http://backend:3000
|
PUBLIC_DEMO_SITE: ${PUBLIC_DEMO_SITE:-false}
|
||||||
API_BASE: ${API_BASE:-http://localhost:3001}
|
depends_on:
|
||||||
PUBLIC_DEMO_SITE: ${PUBLIC_DEMO_SITE:-false}
|
- backend
|
||||||
depends_on:
|
|
||||||
- backend
|
volumes:
|
||||||
|
likwid_demo_data:
|
||||||
volumes:
|
|
||||||
likwid_demo_data:
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue