version: "3.2"
services:
  dgraphZero:
    image: registry.cn-zhangjiakou.aliyuncs.com/bisheng/dgraph:v1.0.5
    container_name: dgraphZero
    privileged: true
    volumes:
      - ${basedir}/service/dgraph:/dgraph:rw
#    ports:
#      - 5080:5080
#      - 6080:6080
    restart: on-failure
    command: dgraph zero --my=dgraphZero:5080
    networks:
      bisheng:
        aliases:
        - dgraphZero
  dgraphServer:
    image: registry.cn-zhangjiakou.aliyuncs.com/bisheng/dgraph:v1.0.5
    container_name: dgraphServer
    privileged: true
    volumes:
      - ${basedir}/service/dgraph:/dgraph:rw
#    ports:
#      - 8080:8080
#      - 9080:9080
    restart: on-failure
    command: dgraph server --whitelist  172.17.0.0:172.20.0.0 --my=dgraphServer:7080 --lru_mb=2048 --zero=dgraphZero:5080
    networks:
      bisheng:
        aliases:
        - dgraphServer
  dgraphRatel:
    image: registry.cn-zhangjiakou.aliyuncs.com/bisheng/dgraph:v1.0.5
    container_name: dgraphRatel
    privileged: true
    volumes:
       - ${basedir}/service/dgraph:/dgraph:rw
#    ports:
#      - 8000:8000
    restart: on-failure
    command: dgraph-ratel
    networks:
      bisheng:
        aliases:
        - dgraphRatel
  mongod:
    image: registry.cn-zhangjiakou.aliyuncs.com/bisheng/mongo:3.6
    container_name: mongod
    privileged: true
    volumes:
       - ${basedir}/service/mongod/db/:/data/db:rw
       - ${basedir}/service/mongod/config/:/data/configdb:rw
       - ${basedir}/service/mongod/log/:/data/log:rw
#    ports:
#      - 27017:27017
    restart: on-failure
    command: --config /data/configdb/mongod.conf
    networks:
      bisheng:
        aliases:
        - mongod


  redis:
    image: registry.cn-zhangjiakou.aliyuncs.com/bisheng/redis:6.2.8
    container_name: redis
    privileged: true
    volumes:
       - ${basedir}/service/redis/db:/data:rw
       - ${basedir}/service/redis/config/redis.conf:/usr/local/etc/redis/redis.conf:rw
#    ports:
#      - 6379:6379
    restart: on-failure:10
    command: /usr/local/etc/redis/redis.conf
    networks:
      bisheng:
        aliases:
        - redis

  minio:
    image: registry.cn-zhangjiakou.aliyuncs.com/bisheng/minio:latest
    container_name: minio
    privileged: true
    volumes:
      - ${basedir}/service/minio/data:/data:rw
      - ${basedir}/service/minio/config:/root/.minio:rw
    environment:
      MINIO_ACCESS_KEY: 9QPAQ65R1SO1NDHNYESN
      MINIO_SECRET_KEY: X9MquX/OTU35GLApKJ8tEMqBcTcXc4WSKigkroUI
#    ports:
#      - 9000:9000
    restart: on-failure
    command: server /data
    networks:
      bisheng:
        aliases:
        - minio


networks:
  bisheng:
    external: true
