Files
x-server-mobile/docker-compose.yml
T
root 5aa7825f19 config: update all database references to xserver
- Update backend/.env: DB_DATABASE=xserver
- Update backend/.env.example: DB_DATABASE=xserver
- Update docker-compose.yml: DB_DATABASE=xserver
- Update backend/app/util/Db.php: default database=xserver

The old database name 'x_server_mobile' has been fully migrated to 'xserver'.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 21:29:45 +08:00

27 lines
513 B
YAML

services:
# PHP 后端服务
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: x-server-backend
volumes:
- ./backend:/app
ports:
- "8787:8787"
environment:
- DB_HOST=mysql
- DB_PORT=3306
- DB_DATABASE=xserver
- DB_USERNAME=root
- DB_PASSWORD=123456
- REDIS_HOST=redis
- REDIS_PORT=6379
networks:
- 1panel-network
restart: unless-stopped
networks:
1panel-network:
external: true