version: '3.1' services: server: build: context: . dockerfile: Dockerfile volumes: - ./:/app/ - /app/node_modules/ - /app/dist/ # Avoid syncing database to our server - /app/database/ restart: always tty: true ports: - "17365:17365" depends_on: - mongodb environment: - MONGODB_PORT_27017_TCP_ADDR=mongodb mongodb: image: mongo:latest volumes: - ./database:/data/db command: mongod --smallfiles --bind_ip=0.0.0.0 --logpath=/dev/null expose: - 27017 # Remove below comments to use this container. "adminMongo is a Web based user interface (GUI) to handle all your MongoDB connections/databases needs." # #adminmongo: # image: mrvautin/adminmongo # links: # - mongodb # tty: true # ports: # - "1234:1234" # environment: # - CONN_NAME=zenbot_mongodb # - DB_HOST=mongodb # - DB_PORT=27017 # command: "npm start"