chore: update live chat and work server changes

This commit is contained in:
2026-04-26 16:37:06 +09:00
parent 63e5d263a7
commit 20a6333ed2
38 changed files with 2078 additions and 2281 deletions

View File

@@ -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