You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
version: '3.9'
|
|
|
|
services:
|
|
mongo:
|
|
container_name: mongo
|
|
image: mongo:latest
|
|
restart: always
|
|
volumes:
|
|
- /opt/mongodb/data:/data/db
|
|
ports:
|
|
- 27017:27017
|
|
environment:
|
|
MONGO_INITDB_ROOT_USERNAME: user
|
|
MONGO_INITDB_ROOT_PASSWORD: pass
|
|
|
|
networks:
|
|
default:
|
|
name: databases |