Created
January 12, 2023 06:38
-
-
Save hyunolike/bd96d5ae502f04382b86c998804b9763 to your computer and use it in GitHub Desktop.
🍃mongodb with docker-compose
This file contains 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
version: '3.8' | |
services: | |
mongodb: | |
image: mongo | |
container_name: mongodb | |
ports: | |
- 27017:27017 | |
volumes: | |
- ./mongodb:/data/db | |
environment: | |
- MONGO_INITDB_ROOT_USERNAME=root | |
- MONGO_INITDB_ROOT_PASSWORD=1234 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
container_name
>> 컨테이너 이름 설정