services: biliup: image: ghcr.io/biliup/caution:latest container_name: biliup restart: unless-stopped ports: # 可通过环境变量覆盖宿主机端口,例如 BILIUP_PORT=8080 docker compose up -d - "${BILIUP_PORT:-19159}:19159" volumes: # 录播与数据保存目录,默认使用当前目录下的 data/ - ${BILIUP_DATA:-./data}:/opt # 容器内必须监听 0.0.0.0,否则上面的端口映射无法转发进容器 command: server --bind 0.0.0.0 --auth