Deploy platforms that route to the container's exposed/compose port (8890) were hitting the fun backend directly, which 404s unmatched GET paths. Now nginx answers on both ports so either routing lands on the SPA/API proxy layer. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
18 lines
555 B
YAML
18 lines
555 B
YAML
services:
|
|
cyibox:
|
|
build: .
|
|
image: cyi-box:latest
|
|
container_name: cyibox
|
|
ports:
|
|
- "8890:8890" # 对外端口:容器内 nginx 同时监听 80 与 8890,左侧随意改
|
|
volumes:
|
|
- cyibox-data:/app/data # SQLite + vault.key + 网盘文件都落这里
|
|
environment:
|
|
CYIBOX_ADMIN_PASSWORD: ${CYIBOX_ADMIN_PASSWORD:-admin123} # 首启种子管理员密码,建议改
|
|
# CYIBOX_ADMIN_NAME: admin
|
|
# CYIBOX_CORS: "https://a.com,https://b.com"
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
cyibox-data:
|