docker-compose搭建nodebb
1 version: "3" 2 networks: 3 nodebb-net: 4 # driver: bridge 5 services: 6 nodebb: 7 image: nodebb/docker 8 container_name: nodebb 9 hostname: nodebb 10 restart: always 11 networks: 12 - "nodebb-net" 13 ports: 14 - 4567:4567 15 volumes: 16 - ./bbs/config.json:/usr/src/app/config.json #配置文件处理 17 - ./bbs/public/uploads:/usr/src/app/public/uploads #上传文件路径 18 mongo: 19 image: mongo 20 container_name: nodebb-mongo 21 hostname: mongo 22 restart: always 23 command: --wiredTigerCacheSizeGB 1.0 24 volumes: 25 - ./mongo/data:/data/db 26 - ./mongo/config:/data/configdb #没有用到 27 networks: 28 - "nodebb-net"
在docker和群晖docker都能使用.