mongodb crawlab

This commit is contained in:
2022-11-23 11:09:43 +08:00
parent 3461813bf1
commit c17c8137f2
3 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
version: '3.3'
services:
mongo:
image: mongo:4.2
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: username # mongo username
MONGO_INITDB_ROOT_PASSWORD: password # mongo password
volumes:
- "./data:/data/db" # persistent mongo data
ports:
- "27017:27017" # expose mongo port to host machine
networks:
nginx:
aliases:
- mongodb
networks:
nginx:
external: true