chore: ports

This commit is contained in:
Senko-san
2026-06-07 21:04:53 +03:00
parent 9c67a99b68
commit 2dfc0525a6
2 changed files with 15 additions and 10 deletions
+7 -2
View File
@@ -5,12 +5,17 @@
# Per-repo .env.example files still exist for running a service standalone. # Per-repo .env.example files still exist for running a service standalone.
# ====================================================================== # ======================================================================
# ---- Ports -----------------------------------------------------------
NGINX_PORT=8881 # main entrypoint (browser)
API_PORT=8000 # direct backend access (debug / docs)
WEBUI_PORT=3000 # rsbuild dev server (internal; proxied through nginx)
POSTGRES_PORT=5432
REDIS_PORT=6379
# ---- Postgres (db service) ------------------------------------------- # ---- Postgres (db service) -------------------------------------------
POSTGRES_USER=mcma POSTGRES_USER=mcma
POSTGRES_PASSWORD=mcma POSTGRES_PASSWORD=mcma
POSTGRES_DB=mcma POSTGRES_DB=mcma
POSTGRES_PORT=5432
REDIS_PORT=6379
# ---- Backend (api + worker) ------------------------------------------ # ---- Backend (api + worker) ------------------------------------------
ENVIRONMENT=dev # dev | test | prod ENVIRONMENT=dev # dev | test | prod
+5 -5
View File
@@ -59,7 +59,7 @@ services:
- media:/data/media - media:/data/media
- transcode_cache:/data/transcode-cache - transcode_cache:/data/transcode-cache
ports: ports:
- "8000:8000" # direct access for debugging / docs - "${API_PORT:-8000}:8000" # direct access for debugging / docs
depends_on: depends_on:
db: { condition: service_healthy } db: { condition: service_healthy }
redis: { condition: service_healthy } redis: { condition: service_healthy }
@@ -91,21 +91,21 @@ services:
env_file: .env env_file: .env
environment: environment:
RSBUILD_HOST: 0.0.0.0 RSBUILD_HOST: 0.0.0.0
RSBUILD_PORT: "3000" RSBUILD_PORT: "${WEBUI_PORT:-3000}"
# Browser reaches HMR through nginx on :80, not the container's :3000. # Browser reaches HMR through nginx on :80, not the container's :3000.
RSBUILD_HMR_CLIENT_PORT: "80" RSBUILD_HMR_CLIENT_PORT: "${NGINX_PORT:-8881}"
volumes: volumes:
- ./mcma-webui:/app - ./mcma-webui:/app
- /app/node_modules # keep the image's install, don't shadow it - /app/node_modules # keep the image's install, don't shadow it
expose: expose:
- "3000" - "${WEBUI_PORT:-3000}"
restart: unless-stopped restart: unless-stopped
# -- reverse proxy: single entrypoint at localhost:80 --------------------- # -- reverse proxy: single entrypoint at localhost:80 ---------------------
nginx: nginx:
image: nginx:1.27-alpine image: nginx:1.27-alpine
ports: ports:
- "80:80" - "${NGINX_PORT:-8881}:80"
volumes: volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on: depends_on: