Add docker-compose.yaml
This commit is contained in:
13
docker-compose.yaml
Normal file
13
docker-compose.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
mongodb:
|
||||
image: mongo:7.0
|
||||
container_name: mongodb
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "27017:27017"
|
||||
env_file:
|
||||
- .env
|
||||
command: ["--wiredTigerCacheSizeGB", "4"]
|
||||
volumes:
|
||||
- /home/aetos/mongo/data:/data/db
|
||||
- /home/aetos/mongo/config:/data/configdb
|
||||
Reference in New Issue
Block a user