指路


使用Portainer建立Stacks
打开Stacks,Add stack 粘贴以下代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| version: '3.4'
services: go-cqhttp: image: silicer/go-cqhttp:latest container_name: zxbot_go-cqhttp restart: unless-stopped volumes: - go-cqhttp_data:/data - bot_data:/bot links: - bot:bot
postgres: image: postgres:14 container_name: zxbot_postgres restart: unless-stopped environment: - POSTGRES_USER=zxbot - POSTGRES_PASSWORD=zxbot - POSTGRES_DB=zxbot_database volumes: - postgres_data:/var/lib/postgresql/data
bot: image: ghcr.io/d9lab/zhenxun_bot:latest container_name: zxbot_zhenxun_bot depends_on: - postgres restart: unless-stopped environment: - SU=114514 - DB=postgres://zxbot:zxbot@postgres:5432/zxbot_database volumes: - bot_data:/bot links: - postgres:postgres
volumes: bot_data: go-cqhttp_data: postgres_data:
|
镜像有问题了开issue,看见了就回。