mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
28 lines
587 B
YAML
28 lines
587 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
|
|
mongo:
|
|
image: mongo:8-noble
|
|
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
|
|
ME_CONFIG_MONGODB_ADMINUSERNAME: admin
|
|
ME_CONFIG_MONGODB_ADMINPASSWORD: admin
|
|
ME_CONFIG_BASICAUTH: false
|
|
depends_on:
|
|
- mongo
|
|
restart: unless-stopped
|