Skip to content

Commit

Permalink
📝 Docs: update docker-compose (mongoDB)
Browse files Browse the repository at this point in the history
  • Loading branch information
bubblegum95 committed Aug 11, 2024
1 parent 790c65c commit db0bda6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,14 @@ services:
# - redis
volumes:
- ./src:/app/src

mongo:
image: mongo:latest
container_name: my_mongo_db
ports:
- '27017:27017' # 호스트와 컨테이너 간 포트 매핑
environment:
MONGO_INITDB_ROOT_USERNAME: root # 초기 관리자 사용자 이름
MONGO_INITDB_ROOT_PASSWORD: example # 초기 관리자 비밀번호
volumes:
- mongo_data:/data/db # 데이터를 호스트의 볼륨에 저장

0 comments on commit db0bda6

Please sign in to comment.