chore: update live chat and work server changes
This commit is contained in:
@@ -1,16 +1,28 @@
|
||||
services:
|
||||
preview-app:
|
||||
container_name: ai-code-app-preview
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.preview
|
||||
image: node:${NODE_VERSION:-22.22.2}-bookworm
|
||||
user: "0:0"
|
||||
working_dir: /app
|
||||
ports:
|
||||
- "${PREVIEW_APP_PORT:-4173}:5173"
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
volumes:
|
||||
- ./:/app
|
||||
- ./.docker/preview-app/node_modules:/app/node_modules
|
||||
- ./.docker/preview-app/home:/home/how2ice
|
||||
networks:
|
||||
- default
|
||||
- work-backend
|
||||
environment:
|
||||
HOME: /home/how2ice
|
||||
NPM_CONFIG_CACHE: /home/how2ice/.npm
|
||||
PORT: 5173
|
||||
APP_DIST_DIR: /tmp/ai-code-test-app-dist
|
||||
WORK_SERVER_URL: ${WORK_SERVER_URL:-http://host.docker.internal:3100}
|
||||
WORK_SERVER_URL: ${WORK_SERVER_URL:-http://work-server:3100}
|
||||
VITE_DISABLE_APP_UPDATE: "true"
|
||||
command: >
|
||||
sh -c "npm ci --legacy-peer-deps && npm run dev -- --host 0.0.0.0 --port 5173 --strictPort"
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
work-backend:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user