mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-01 23:15:27 +08:00
18 lines
542 B
YAML
18 lines
542 B
YAML
services:
|
|
ds2api:
|
|
image: ghcr.io/cjackhwang/ds2api:latest
|
|
container_name: ds2api
|
|
restart: always
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
# Host port is configurable via DS2API_HOST_PORT; container port stays fixed at 5001.
|
|
- "${DS2API_HOST_PORT:-6011}:5001"
|
|
volumes:
|
|
- ./config.json:/data/config.json # 配置文件(持久化推荐路径)
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
- LOG_LEVEL=INFO
|
|
- DS2API_ADMIN_KEY=${DS2API_ADMIN_KEY:-ds2api}
|
|
- DS2API_CONFIG_PATH=/data/config.json
|