Files
gamegroup2/docker-compose.uat.yml
T
congsh 6b3cd288b1 feat(electron): add persistent auth, auto-updater, and NAS copy script
- Integrate electron-store for persistent PocketBase auth backup
  across localStorage clears and app reinstalls
- Switch build target from portable to nsis to generate latest.yml
  for electron-updater generic provider
- Add user confirmation dialogs before download and before install
- Add post-build script to copy .exe/.yml/.nupkg to NAS share and
  local electron-update/ directory for nginx volume mount
- Mount ./electron-update into frontend nginx containers via
  docker-compose for automatic update file serving

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 14:38:48 +08:00

76 lines
1.8 KiB
YAML

services:
pocketbase-uat:
image: ghcr.io/muchobien/pocketbase:0.22.4
container_name: gamegroup-pb-uat
ports:
- "8712:8090"
volumes:
- ./backend/pb_data_uat:/pb_data
- ./backend/pb_migrations:/pb_migrations
- ./backend/pb_hooks:/pb_hooks
environment:
- GO_ENV=production
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8090/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- gamegroup-net
livekit:
image: livekit/livekit-server:v1.10
container_name: gamegroup-livekit
ports:
- "7880:7880"
- "7881:7881/udp"
- "7882:7882/udp"
environment:
LIVEKIT_KEYS: "APIyxZGQjM2: secretNmU4ZDU3YjA0OWIxNDM4YjhlNWY3YTFjZGUzOWRi"
command: --dev --node-ip 192.168.1.14
restart: unless-stopped
networks:
- gamegroup-net
voice-token:
build:
context: ./backend/voice-token-service
container_name: gamegroup-voice-token
ports:
- "7882:7882"
environment:
- LIVEKIT_API_KEY=APIyxZGQjM2
- LIVEKIT_API_SECRET=secretNmU4ZDU3YjA0OWIxNDM4YjhlNWY3YTFjZGUzOWRi
- PB_URL=http://gamegroup-pb-uat:8090
restart: unless-stopped
depends_on:
- pocketbase-uat
networks:
- gamegroup-net
frontend-uat:
build:
context: ./frontend
dockerfile: Dockerfile
args:
NGINX_CONF: nginx.uat.conf
container_name: gamegroup-frontend-uat
ports:
- "7034:80"
volumes:
- ./electron-update:/usr/share/nginx/html/electron-update
environment:
- NODE_ENV=production
restart: unless-stopped
depends_on:
- pocketbase-uat
networks:
- gamegroup-net
networks:
gamegroup-net:
driver: bridge
external: true