-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.infra.yml
43 lines (40 loc) · 1.01 KB
/
docker-compose.infra.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.8"
services:
# .pinkyring=MONGO
mongo:
container_name: mongo
image: mongo:7.0.5
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=mongo
- MONGO_INITDB_ROOT_PASSWORD=mongo
ports:
- 27017:27017
volumes:
- mongo:/data/db
- mongoConfig:/data/configdb
# default auth credentials?: admin:pass
mongo-express:
container_name: mongo-express
image: mongo-express:1.0.2-20-alpine3.19
restart: always
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=mongo
- ME_CONFIG_MONGODB_ADMINPASSWORD=mongo
- ME_CONFIG_MONGODB_URL=mongodb://mongo:mongo@mongo:27017/
ports:
- 8081:8081
volumes:
- mongo-express:/data/db
depends_on:
mongo:
condition: service_started
# .pinkyring=MONGO.end
# find which volumes need to be created:
# docker image inspect {imageid or name:tag} --format {{.Config.Volumes}}
volumes:
# .pinkyring=MONGO
mongo:
mongoConfig:
mongo-express:
# .pinkyring=MONGO.end