1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/mongo/docker-compose.yml

28 lines
587 B
YAML
Raw Normal View History

2021-12-01 05:31:58 +02:00
version: "3.8"
services:
mongo:
2024-10-17 10:05:16 +02:00
image: mongo:8-noble
2021-12-01 05:31:58 +02:00
ports:
- "27017:27017"
volumes:
- ./data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
restart: unless-stopped
mongo-express:
image: mongo-express
ports:
- "8081:8081"
environment:
ME_CONFIG_MONGODB_URL: mongodb://root:root@mongo:27017
2024-08-26 12:48:32 +02:00
ME_CONFIG_MONGODB_ADMINUSERNAME: admin
ME_CONFIG_MONGODB_ADMINPASSWORD: admin
ME_CONFIG_BASICAUTH: false
2021-12-01 05:31:58 +02:00
depends_on:
- mongo
restart: unless-stopped