mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-02-09 13:03:10 +00:00
deploy: support localhost-only demo bind
This commit is contained in:
parent
1b75c1aebe
commit
3d46399cfc
3 changed files with 86 additions and 92 deletions
|
|
@ -10,9 +10,11 @@ DB_PORT=5433
|
|||
# Backend
|
||||
JWT_SECRET=demo_jwt_secret_not_for_production
|
||||
BACKEND_PORT=3001
|
||||
BACKEND_BIND_HOST=0.0.0.0
|
||||
|
||||
# Frontend
|
||||
FRONTEND_PORT=4322
|
||||
FRONTEND_BIND_HOST=0.0.0.0
|
||||
API_BASE=http://localhost:3001
|
||||
INTERNAL_API_BASE=http://backend:3000
|
||||
|
||||
|
|
|
|||
|
|
@ -2,11 +2,3 @@ services:
|
|||
postgres:
|
||||
ports:
|
||||
- "127.0.0.1:${DB_PORT:-5433}:5432"
|
||||
|
||||
backend:
|
||||
ports:
|
||||
- "127.0.0.1:${BACKEND_PORT:-3001}:3000"
|
||||
|
||||
frontend:
|
||||
ports:
|
||||
- "127.0.0.1:${FRONTEND_PORT:-4322}:4321"
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ services:
|
|||
container_name: likwid-demo-backend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${BACKEND_PORT:-3001}:3000"
|
||||
- "${BACKEND_BIND_HOST:-0.0.0.0}:${BACKEND_PORT:-3001}:3000"
|
||||
environment:
|
||||
DATABASE_URL: postgres://${POSTGRES_USER:-likwid_demo}:${POSTGRES_PASSWORD:-demo_secret_change_me}@postgres:5432/${POSTGRES_DB:-likwid_demo}
|
||||
JWT_SECRET: ${JWT_SECRET:-demo_jwt_secret_not_for_production}
|
||||
|
|
@ -49,7 +49,7 @@ services:
|
|||
container_name: likwid-demo-frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${FRONTEND_PORT:-4322}:4321"
|
||||
- "${FRONTEND_BIND_HOST:-0.0.0.0}:${FRONTEND_PORT:-4322}:4321"
|
||||
environment:
|
||||
INTERNAL_API_BASE: http://backend:3000
|
||||
API_BASE: ${API_BASE:-http://localhost:3001}
|
||||
|
|
|
|||
Loading…
Reference in a new issue