version: '3.3' services: master: image: crawlabteam/crawlab container_name: crawlab_master restart: unless-stopped environment: CRAWLAB_NODE_MASTER: Y # Y: master node CRAWLAB_MONGO_HOST: mongodb # mongo host address. In the docker compose network, directly refer to the service name CRAWLAB_MONGO_PORT: 27017 # mongo port CRAWLAB_MONGO_DB: crawlab # mongo database CRAWLAB_MONGO_USERNAME: username # mongo username CRAWLAB_MONGO_PASSWORD: password # mongo password CRAWLAB_MONGO_AUTHSOURCE: admin # mongo auth source volumes: - "./data/master:/data" # persistent crawlab data ports: - "8080:8080" # exposed api port - "9666:9666" # exposed grpc port networks: nginx: aliases: - crawlab-master networks: nginx: external: true