From fef789e4d32294bb0effe9bca94396e1eb8694bf Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Thu, 15 Jan 2026 18:53:24 +0800 Subject: [PATCH] feat: add Docker Compose configuration for AstrBot and Shipyard services --- compose-with-shipyard.yml | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 compose-with-shipyard.yml diff --git a/compose-with-shipyard.yml b/compose-with-shipyard.yml new file mode 100644 index 000000000..338f7b86f --- /dev/null +++ b/compose-with-shipyard.yml @@ -0,0 +1,47 @@ +version: '3.8' + +# 当接入 QQ NapCat 时,请使用这个 compose 文件一键部署: https://github.com/NapNeko/NapCat-Docker/blob/main/compose/astrbot.yml + +services: + astrbot: + image: soulter/astrbot:latest + container_name: astrbot + restart: always + ports: # mappings description: https://github.com/AstrBotDevs/AstrBot/issues/497 + - "6185:6185" # 必选,AstrBot WebUI 端口 + - "6199:6199" # 可选, QQ 个人号 WebSocket 端口 + environment: + - TZ=Asia/Shanghai + volumes: + - ${PWD}/data:/AstrBot/data + # - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + networks: + - astrbot_network + + shipyard: + image: soulter/shipyard-bay:latest + container_name: astrbot_shipyard + # ports: + # - "8156:8156" + environment: + - PORT=8156 + - DATABASE_URL=sqlite+aiosqlite:///./data/bay.db + - ACCESS_TOKEN=secret-token + - MAX_SHIP_NUM=10 + - BEHAVIOR_AFTER_MAX_SHIP=reject + - DOCKER_IMAGE=soulter/shipyard-ship:latest + - DOCKER_NETWORK=astrbot_network + - SHIP_DATA_DIR=${PWD}/data/shipyard/ship_mnt_data + - DEFAULT_SHIP_CPUS=1.0 + - DEFAULT_SHIP_MEMORY=512m + volumes: + - ${PWD}/data/shipyard/bay_data:/app/data + - /var/run/docker.sock:/var/run/docker.sock:ro + networks: + - astrbot_network + +networks: + astrbot_network: + name: astrbot_network + driver: bridge