version: '3.4' services: watchdog: image: alert-scheduler restart: always build: context: ./alert-scheduler dockerfile: ./Dockerfile web: image: web restart: unless-stopped ports: - 5200:5200 build: context: ./web dockerfile: ./Dockerfile mongo: image: mongo restart: always environment: MONGO_INITDB_ROOT_USERNAME: nils MONGO_INITDB_ROOT_PASSWORD: mymongopw ports: - '27017-27019:27017-27019' volumes: - mongo-db:/data/db - mongo-db:/data/configdb mongo-express: image: mongo-express restart: always ports: - 8081:8081 environment: ME_CONFIG_MONGODB_ADMINUSERNAME: nils ME_CONFIG_MONGODB_ADMINPASSWORD: mymongopw ME_CONFIG_MONGODB_URL: mongodb://nils:mymongopw@mongo:27017/ volumes: mongo-db: