Last active
April 9, 2024 23:20
-
-
Save crazyoptimist/6b70fba82c5f02347579d825b61894e3 to your computer and use it in GitHub Desktop.
MongoDB Docker Deployment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mongodb | |
services: | |
mongodb: | |
container_name: mongo | |
image: mongo:7 | |
volumes: | |
- mongodb_data:/data/db/ | |
ports: | |
- 27017:27017 | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: user | |
MONGO_INITDB_ROOT_PASSWORD: youmayneverguess | |
command: --quiet | |
logging: | |
driver: "json-file" | |
options: | |
max-size: "200k" | |
max-file: "10" | |
restart: always | |
volumes: | |
mongodb_data: |
Great!
You can run mongo5+ only on a server of which CPU supports AVX.
Thank you
Glad it helped :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, I got the timezone worked with :
List of timezone : Setting Local Time in Docker