-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmongo.yml
43 lines (42 loc) · 1.14 KB
/
mongo.yml
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
34
35
36
37
38
39
40
41
42
43
version: '3.2'
services:
#Mongo Express
mongo-express:
container_name: Mongo-Express
image: mongo-express
ports:
- ${PORT_MONGO_EXPRESS}:8081
restart: unless-stopped
environment:
ME_CONFIG_BASICAUTH_USERNAME: ${ME_CONFIG_BASICAUTH_USERNAME}
ME_CONFIG_BASICAUTH_PASSWORD: ${ME_CONFIG_BASICAUTH_PASSWORD}
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGO_USERNAME}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGO_ROOT_PASSWORD}
ME_CONFIG_MONGODB_SERVER: MongoDB
ME_CONFIG_OPTIONS_EDITORTHEME: cobalt
links:
- mongo
networks:
development_net:
ipv4_address: ${IP_MONGO_EXPRESS}
#Mongo Database
mongo:
container_name: MongoDB
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASSWORD}
ports:
- ${PORT_MONGO}:27017
restart: unless-stopped
volumes:
- ./data/mongo:/data/db
networks:
development_net:
ipv4_address: ${IP_MONGO}
networks:
development_net:
ipam:
driver: default
config:
- subnet: ${SUBNET}