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'
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:
image: redis:7-alpine
container_name: nexuma-redis
restart: unless-stopped
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- nexuma
@@ -57,7 +80,7 @@ services:
environment:
PORT: 3000
GRPC_PORT: 3002
DB_HOST: your-postgres-host
DB_HOST: postgres
DB_PORT: 5432
DB_USER: postgres
DB_PASSWORD: change-me
@@ -73,7 +96,10 @@ services:
- "3000:3000"
- "3002:3002"
depends_on:
- redis
postgres:
condition: service_healthy
redis:
condition: service_healthy
networks:
- nexuma
@@ -92,6 +118,7 @@ services:
- nexuma
volumes:
postgres_data:
redis_data:
networks:
+29 -2
View File
@@ -4,12 +4,35 @@ version: '3.9'
# Usage: docker compose -f docker-compose.base.yml up -d
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:
image: redis:7-alpine
container_name: nexuma-redis
restart: unless-stopped
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- nexuma
@@ -20,7 +43,7 @@ services:
environment:
PORT: 3000
GRPC_PORT: 3002
DB_HOST: your-postgres-host
DB_HOST: postgres
DB_PORT: 5432
DB_USER: postgres
DB_PASSWORD: change-me
@@ -37,7 +60,10 @@ services:
- "3000:3000"
- "3002:3002"
depends_on:
- redis
postgres:
condition: service_healthy
redis:
condition: service_healthy
networks:
- nexuma
healthcheck:
@@ -62,6 +88,7 @@ services:
- nexuma
volumes:
postgres_data:
redis_data:
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_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: