Configuration changes, new services

This commit is contained in:
Pavel Kachalouski
2020-03-27 16:47:01 +01:00
parent 288097ae2b
commit 57b67a7060
4 changed files with 43 additions and 7 deletions

View File

@@ -0,0 +1,21 @@
version: '3.1'
services:
mongo:
container_name: mongodb
restart: always
command: ["--bind_ip_all"]
image: mongo:4
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: root
ports:
- "27017:27017"
volumes:
- /var/db/mongodb:/data/db
networks:
- mongo
networks:
mongo:
driver: bridge