vdi-cloud/deploy/compose.dev.yml

45 lines
1.1 KiB
YAML
Raw Normal View History

name: vdi-cloud-dev
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: vdi
POSTGRES_PASSWORD: vdi-local-demo
POSTGRES_DB: vdi
ports:
- "127.0.0.1:55438:5432"
volumes:
- vdi-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U vdi -d vdi"]
interval: 3s
timeout: 3s
retries: 20
api:
build:
context: ..
dockerfile: platform/Dockerfile
environment:
VDI_MODE: demo
VDI_LISTEN: 0.0.0.0:8080
VDI_JWT_SECRET: local-demo-only-change-before-any-production-use-2026
DATABASE_URL: postgres://vdi:vdi-local-demo@postgres:5432/vdi?sslmode=disable
ports:
- "127.0.0.1:${VDI_API_PORT:-8088}:8080"
depends_on:
postgres:
condition: service_healthy
init: true
console:
build:
context: ..
dockerfile: console/Dockerfile
args:
VITE_DEMO_HINT: "true"
ports:
- "127.0.0.1:${VDI_CONSOLE_PORT:-5180}:80"
depends_on:
- api
volumes:
vdi-postgres: