-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (30 loc) · 796 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
33 lines (30 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# version: '3.6'
# # Deploys MongoDB with customization scripts and container with Mongo client
# # https://fabianlee.org/2018/05/20/docker-using-docker-compose-to-link-a-mongodb-server-and-client/
# #
# # usage:
# # sudo docker-compose build
# # sudo docker-compose up
# services:
# my-mongodb:
# image: mongo:4.2.3-bionic
# container_name: my-mongodb
# ports:
# - 27017:27017
# volumes:
# # seeding scripts
# - ./mongo-entrypoint:/docker-entrypoint-initdb.d
# # named volumes
# - mongodb:/data/db
# - mongoconfig:/data/configdb
# networks:
# - mongo_net
# env_file:
# - .env
# volumes:
# # default dir on Ubuntu: /var/lib/docker/volumes
# mongodb:
# mongoconfig:
# networks:
# mongo_net:
# driver: bridge