This commit is contained in:
2026-06-14 01:39:15 +03:00
parent 0961180284
commit b422f2af3a
3 changed files with 59 additions and 4 deletions
+29 -2
View File
@@ -41,12 +41,35 @@ Create a `docker-compose.yml` from the base example:
version: '3.9' version: '3.9'
services: services:
postgres:
image: postgres:16-alpine
container_name: nexuma-postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: change-me
POSTGRES_DB: nexuma
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
networks:
- nexuma
redis: redis:
image: redis:7-alpine image: redis:7-alpine
container_name: nexuma-redis container_name: nexuma-redis
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- redis_data:/data - redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks: networks:
- nexuma - nexuma
@@ -57,7 +80,7 @@ services:
environment: environment:
PORT: 3000 PORT: 3000
GRPC_PORT: 3002 GRPC_PORT: 3002
DB_HOST: your-postgres-host DB_HOST: postgres
DB_PORT: 5432 DB_PORT: 5432
DB_USER: postgres DB_USER: postgres
DB_PASSWORD: change-me DB_PASSWORD: change-me
@@ -73,7 +96,10 @@ services:
- "3000:3000" - "3000:3000"
- "3002:3002" - "3002:3002"
depends_on: depends_on:
- redis postgres:
condition: service_healthy
redis:
condition: service_healthy
networks: networks:
- nexuma - nexuma
@@ -92,6 +118,7 @@ services:
- nexuma - nexuma
volumes: volumes:
postgres_data:
redis_data: redis_data:
networks: networks:
+29 -2
View File
@@ -4,12 +4,35 @@ version: '3.9'
# Usage: docker compose -f docker-compose.base.yml up -d # Usage: docker compose -f docker-compose.base.yml up -d
services: services:
postgres:
image: postgres:16-alpine
container_name: nexuma-postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: change-me
POSTGRES_DB: nexuma
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
networks:
- nexuma
redis: redis:
image: redis:7-alpine image: redis:7-alpine
container_name: nexuma-redis container_name: nexuma-redis
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- redis_data:/data - redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks: networks:
- nexuma - nexuma
@@ -20,7 +43,7 @@ services:
environment: environment:
PORT: 3000 PORT: 3000
GRPC_PORT: 3002 GRPC_PORT: 3002
DB_HOST: your-postgres-host DB_HOST: postgres
DB_PORT: 5432 DB_PORT: 5432
DB_USER: postgres DB_USER: postgres
DB_PASSWORD: change-me DB_PASSWORD: change-me
@@ -37,7 +60,10 @@ services:
- "3000:3000" - "3000:3000"
- "3002:3002" - "3002:3002"
depends_on: depends_on:
- redis postgres:
condition: service_healthy
redis:
condition: service_healthy
networks: networks:
- nexuma - nexuma
healthcheck: healthcheck:
@@ -62,6 +88,7 @@ services:
- nexuma - nexuma
volumes: volumes:
postgres_data:
redis_data: redis_data:
networks: networks:
+1
View File
@@ -135,6 +135,7 @@ This page is public operator documentation. It describes panel capabilities, rou
| --- | --- | --- | --- | | --- | --- | --- | --- |
| `NUXT_PUBLIC_API_BASE` | No | `/api` | Browser-facing API base. Use `/api` for same-origin panel proxying. | | `NUXT_PUBLIC_API_BASE` | No | `/api` | Browser-facing API base. Use `/api` for same-origin panel proxying. |
| `NUXT_CORE_URL` | Yes for Docker | `http://localhost:3000` fallback | Core URL used by the panel server proxy. | | `NUXT_CORE_URL` | Yes for Docker | `http://localhost:3000` fallback | Core URL used by the panel server proxy. |
| `NUXT_PUBLIC_WS_BASE` | No | empty (same origin) | WebSocket origin for the Socket.IO client (`/ws`). Empty = same origin (prod behind a reverse proxy that forwards `/ws` to Core); in dev point at Core, e.g. `http://localhost:3000`. |
Recommended production values: Recommended production values: