version: "3"
services:
  majavashakki-mongo:
    image: mongo
    restart: always
    volumes:
      - majavashakki-data:/data/db
    ports:
      - 27017:27017

  majavashakki-mongo-express:
    image: mongo-express
    restart: always
    ports:
      - 8081:8081
volumes:
  majavashakki-data:
version: "3"
services:
  majavashakki-mongo:
    image: mongo
    restart: always
    volumes:
      - majavashakki-data:/data/db
    ports:
      - 27017:27017

  majavashakki-mongo-express:
    image: mongo-express
    restart: always
    ports:
      - 8081:8081
    environment:
      ME_CONFIG_MONGODB_SERVER: majavashakki-mongo
volumes:
  majavashakki-data:
Fix mongo-express not finding mongo running on docker
Fix mongo-express not finding mongo running on docker

The mongo-express image defaults to looking for hostname mongo but our
mongo container is configured to have hostname majavashakki-mongo.
