-
Notifications
You must be signed in to change notification settings - Fork 2
/
mongo.yaml
43 lines (40 loc) · 933 Bytes
/
mongo.yaml
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'
services:
# database
db:
image: mongo:latest
container_name: mongodb
restart: unless-stopped
volumes:
- mongo-data:/data/db
- mongo-config:/data/configdb
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
MONGO_INITDB_DATABASE: ad-caspar
networks:
- mongo-net
# mongo-express
mongo-express:
image: mongo-express:latest
container_name: mongo-express
depends_on:
- db
restart: unless-stopped
ports:
- 8087:8081
environment:
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: tribes
networks:
- mongo-net
networks:
mongo-net:
volumes:
mongo-data:
mongo-config: