22 lines
376 B
YAML
22 lines
376 B
YAML
---
|
|
services:
|
|
mongo:
|
|
image: mongo:6.0.5
|
|
restart: unless-stopped
|
|
volumes:
|
|
- mongo:/data/db
|
|
command:
|
|
- --storageEngine=wiredTiger
|
|
environment:
|
|
- "MONGO_INITDB_ROOT_USERNAME=mongo"
|
|
- "MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}"
|
|
networks:
|
|
- internal
|
|
ports:
|
|
- 27017:27017
|
|
|
|
networks:
|
|
internal:
|
|
|
|
volumes:
|
|
mongo: |