-
Notifications
You must be signed in to change notification settings - Fork 0
/
Docker-Compose.yaml
42 lines (38 loc) · 998 Bytes
/
Docker-Compose.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
# ❯ docker-compose -f .\docker-compose.yaml up --build
version: '3.8'
services:
mongo:
image: mongo:5.0.1-focal
restart: always
container_name: mongo-avanade
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: avanade-password
MONGO_INITDB_DATABASE: fullstack
ports:
- "27017:27017"
volumes:
- /mnt/c/temp/mongo2:/data/db
networks:
- mongo-compose-network
mongo-express:
image: mongo-express:0.54.0
restart: always
container_name: mongoexp-avanade
ports:
- 9031:8081
environment:
ME_CONFIG_BASICAUTH_USERNAME: avanade-user
ME_CONFIG_BASICAUTH_PASSWORD: Abcd1234%
ME_CONFIG_MONGODB_PORT: 27017
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: avanade-password
links:
- mongo
networks:
- mongo-compose-network
depends_on:
- mongo
networks:
mongo-compose-network:
driver: bridge