version: '3.1' # This is an example Docker compose configuration file # that can be used to deploy 4Minitz via Docker. # # If you are deploying a fresh install of 4Minitz feel # free to use this. If you want to upgrade an existing # 4Minitz installation please see our migration guide. # Otherwise you may run into issues with the MongoDB. services: mongo: image: mongo:3.4 restart: always networks: - 4minitz volumes: - ./4minitz_storage/mongodb:/data/db 4minitz: image: 4minitz/4minitz:stable restart: always ports: - 3100:3333 environment: - MONGO_URL=mongodb://mongo/4minitz - ROOT_URL=http://localhost:3100 volumes: - ./4minitz_storage:/4minitz_storage networks: - 4minitz depends_on: - mongo networks: 4minitz: