services: postgres: image: ${POSTGRES_IMAGE:-docker.1ms.run/library/postgres:16} container_name: maas-base-db restart: unless-stopped environment: POSTGRES_USER: gpustack POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-gpustack} POSTGRES_DB: gpustack volumes: - postgres-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U gpustack"] interval: 5s timeout: 5s retries: 5 maas-base-server: build: context: .. dockerfile: pack/Dockerfile container_name: maas-base-server restart: unless-stopped depends_on: postgres: condition: service_healthy entrypoint: ["/usr/bin/entrypoint.sh", "--gateway-mode", "embedded"] environment: GPUSTACK_DATABASE_URL: postgresql://gpustack:${POSTGRES_PASSWORD:-gpustack}@postgres:5432/gpustack # SSO 统一认证平台配置 GPUSTACK_SSO_BASE_URL: http://192.168.92.61:8200 GPUSTACK_SSO_CLIENT_ID: ${GPUSTACK_SSO_CLIENT_ID} GPUSTACK_SSO_CLIENT_SECRET: ${GPUSTACK_SSO_CLIENT_SECRET} GPUSTACK_SSO_REDIRECT_URI: http://192.168.92.151:8080/auth/callback GPUSTACK_SSO_FRONTEND_URL: http://192.168.92.151:8080 GPUSTACK_SSO_LOGOUT_REDIRECT_URL: http://192.168.92.61:9200/login # CORS GPUSTACK_ENABLE_CORS: "true" GPUSTACK_ALLOW_ORIGINS: '["http://192.168.92.151:8080"]' volumes: - maas-base-data:/var/lib/gpustack ports: - "80:80" volumes: postgres-data: {} maas-base-data: {}