name: muse-r2-${MUSE_INSTANCE:?请指定隔离实例名} services: web: image: ${MUSE_IMAGE:?请指定已核对的镜像身份} pull_policy: never user: "${MUSE_UID:-10001}:${MUSE_GID:-10001}" init: true read_only: true tmpfs: - /tmp ports: - "127.0.0.1:${MUSE_PORT:-18080}:8080" volumes: - type: bind source: ${MUSE_CONFIG:?请指定应用配置文件} target: /etc/muse/app.toml read_only: true - type: bind source: ${MUSE_STATE_DIR:?请指定持久目录} target: /var/lib/muse secrets: - source: database target: muse_db - source: author target: muse_author healthcheck: test: ["CMD", "/opt/muse/bin/python", "-I", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/ready',timeout=3).read()"] interval: 5s timeout: 4s retries: 12 stop_grace_period: 120s secrets: database: file: ${MUSE_DB_FILE:?请指定本用途数据库引用文件} author: file: ${MUSE_AUTHOR_FILE:?请指定作者口令文件}