-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-mongodb.yaml
More file actions
38 lines (35 loc) · 915 Bytes
/
docker-compose-mongodb.yaml
File metadata and controls
38 lines (35 loc) · 915 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
34
35
36
37
38
# Use root/example as user/password credentials
version: '3.8'
services:
mongo:
image: mongo:4.4.17-rc0
container_name: mongodb
ports:
- 27017:27017
restart: always
volumes:
- mongo-data:/data/db
- ./data:/opt/data
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
networks:
- airflow-etl-ohitv_ohitv
mongo-express:
image: mongo-express:1.0.2-20-alpine3.19
container_name: mongodb-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: admin
ME_CONFIG_MONGODB_ADMINPASSWORD: admin
ME_CONFIG_MONGODB_URL: mongodb://admin:admin@mongo:27017/
ME_CONFIG_BASICAUTH: "FALSE"
networks:
- airflow-etl-ohitv_ohitv
networks:
airflow-etl-ohitv_ohitv:
external: true
volumes:
mongo-data: