mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-02-09 21:13:09 +00:00
compose: standardize demo/production env usage
This commit is contained in:
parent
9fb576fc2c
commit
180fe5f05d
5 changed files with 13 additions and 5 deletions
|
|
@ -14,6 +14,7 @@ BACKEND_PORT=3001
|
||||||
# Frontend
|
# Frontend
|
||||||
FRONTEND_PORT=4322
|
FRONTEND_PORT=4322
|
||||||
API_BASE=http://localhost:3001
|
API_BASE=http://localhost:3001
|
||||||
|
INTERNAL_API_BASE=http://backend:3000
|
||||||
|
|
||||||
# Demo mode is always enabled for this deployment
|
# Demo mode is always enabled for this deployment
|
||||||
# This enables:
|
# This enables:
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,6 @@ BACKEND_PORT=3000
|
||||||
# Frontend
|
# Frontend
|
||||||
FRONTEND_PORT=4321
|
FRONTEND_PORT=4321
|
||||||
API_BASE=https://your-domain.com
|
API_BASE=https://your-domain.com
|
||||||
|
INTERNAL_API_BASE=http://backend:3000
|
||||||
|
|
||||||
# Note: DEMO_MODE is always false for production
|
# Note: DEMO_MODE is always false for production
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
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 -f compose/demo.yml up -d
|
# Usage: podman-compose --env-file compose/.env.demo -f compose/demo.yml up -d
|
||||||
# Reset: podman-compose -f compose/demo.yml down -v && podman-compose -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:
|
||||||
|
|
@ -27,6 +27,8 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ../backend
|
context: ../backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
INCLUDE_DEMO_SEED: "true"
|
||||||
container_name: likwid-demo-backend
|
container_name: likwid-demo-backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
|
|
@ -53,6 +55,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "${FRONTEND_PORT:-4322}:4321"
|
- "${FRONTEND_PORT:-4322}:4321"
|
||||||
environment:
|
environment:
|
||||||
|
INTERNAL_API_BASE: http://backend:3000
|
||||||
API_BASE: ${API_BASE:-http://localhost:3001}
|
API_BASE: ${API_BASE:-http://localhost:3001}
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: ${POSTGRES_USER}
|
POSTGRES_USER: ${POSTGRES_USER:-likwid}
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-likwid}
|
||||||
POSTGRES_DB: ${POSTGRES_DB}
|
POSTGRES_DB: ${POSTGRES_DB:-likwid}
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql/data
|
- pgdata:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ../backend
|
context: ../backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
INCLUDE_DEMO_SEED: "false"
|
||||||
container_name: likwid-prod-backend
|
container_name: likwid-prod-backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
|
|
@ -52,6 +54,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "${FRONTEND_PORT:-4321}:4321"
|
- "${FRONTEND_PORT:-4321}:4321"
|
||||||
environment:
|
environment:
|
||||||
|
INTERNAL_API_BASE: http://backend:3000
|
||||||
API_BASE: ${API_BASE:-http://localhost:3000}
|
API_BASE: ${API_BASE:-http://localhost:3000}
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue