forked from baron/baron-sso
fix(deploy): align staging frontend runtime with production images
This commit is contained in:
@@ -314,48 +314,56 @@ services:
|
||||
networks: [app_net]
|
||||
|
||||
adminfront:
|
||||
image: node:20-alpine
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: ./adminfront/Dockerfile
|
||||
args:
|
||||
VITE_ADMIN_PUBLIC_URL: ${ADMINFRONT_URL}
|
||||
VITE_OIDC_AUTHORITY: ${VITE_OIDC_AUTHORITY}
|
||||
VITE_OIDC_CLIENT_ID: adminfront
|
||||
ORGFRONT_URL: ${ORGFRONT_URL}
|
||||
container_name: ${COMPOSE_PROJECT_NAME}_adminfront
|
||||
working_dir: /app
|
||||
env_file: .env
|
||||
environment:
|
||||
- APP_ENV=${APP_ENV:-production}
|
||||
- API_PROXY_TARGET=http://backend:${BACKEND_PORT}
|
||||
ports:
|
||||
- "${ADMINFRONT_PORT}:5173"
|
||||
volumes:
|
||||
- ../../common:/common
|
||||
- ../../adminfront:/app
|
||||
- ./adminfront/vite.config.ts:/app/vite.config.ts:ro
|
||||
- ./adminfront/auth.ts:/app/src/lib/auth.ts:ro
|
||||
command: sh ./scripts/runtime-mode.sh
|
||||
networks: [app_net]
|
||||
|
||||
devfront:
|
||||
image: node:20-alpine
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: ./devfront/Dockerfile
|
||||
args:
|
||||
VITE_DEVFRONT_PUBLIC_URL: ${DEVFRONT_URL}
|
||||
VITE_OIDC_AUTHORITY: ${VITE_OIDC_AUTHORITY}
|
||||
VITE_OIDC_CLIENT_ID: devfront
|
||||
container_name: ${COMPOSE_PROJECT_NAME}_devfront
|
||||
working_dir: /app
|
||||
env_file: .env
|
||||
environment:
|
||||
- APP_ENV=${APP_ENV:-production}
|
||||
- API_PROXY_TARGET=http://backend:${BACKEND_PORT}
|
||||
ports:
|
||||
- "${DEVFRONT_PORT}:5173"
|
||||
volumes:
|
||||
- ../../common:/common
|
||||
- ../../devfront:/app
|
||||
- ./devfront/vite.config.ts:/app/vite.config.ts:ro
|
||||
- ./devfront/auth.ts:/app/src/lib/auth.ts:ro
|
||||
command: sh ./scripts/runtime-mode.sh
|
||||
networks: [app_net]
|
||||
|
||||
orgfront:
|
||||
image: node:20-alpine
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: ./orgfront/Dockerfile
|
||||
args:
|
||||
VITE_ORGFRONT_PUBLIC_URL: ${ORGFRONT_URL}
|
||||
VITE_OIDC_AUTHORITY: ${VITE_OIDC_AUTHORITY}
|
||||
VITE_OIDC_CLIENT_ID: orgfront
|
||||
container_name: ${COMPOSE_PROJECT_NAME}_orgfront
|
||||
working_dir: /app
|
||||
env_file: .env
|
||||
environment:
|
||||
- APP_ENV=${APP_ENV:-production}
|
||||
- API_PROXY_TARGET=http://backend:${BACKEND_PORT}
|
||||
- USERFRONT_URL=${USERFRONT_URL}
|
||||
ports:
|
||||
- "${ORGFRONT_PORT}:5175"
|
||||
volumes:
|
||||
- ../../common:/common
|
||||
- ../../orgfront:/app
|
||||
- ./orgfront/vite.config.ts:/app/vite.config.ts:ro
|
||||
- ./orgfront/auth.ts:/app/src/lib/auth.ts:ro
|
||||
command: sh ./scripts/runtime-mode.sh
|
||||
networks: [app_net]
|
||||
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user