mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-02 07:25:26 +08:00
17 lines
470 B
YAML
17 lines
470 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:/app/config.json # 配置文件
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
- LOG_LEVEL=INFO
|
|
- DS2API_ADMIN_KEY=${DS2API_ADMIN_KEY:-ds2api}
|