update commit

This commit is contained in:
2024-10-28 16:28:49 +09:00
parent 1ab0d83941
commit 93dfd1c8b8
325 changed files with 6012 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# Dockerfile
# 공식 MongoDB 이미지 사용
FROM mongo:latest
# MongoDB 클라이언트 설치
RUN apt-get install -y mongodb-org-shell && rm -rf /var/lib/apt/lists/*
# 컨테이너 시작시 MongoDB 클라이언트 도구를 사용하여 스크립트 실행
CMD mongosh localhost:27017/LogDB /docker-entrypoint-initdb.d/init-mongo.js

View File

@@ -0,0 +1,2 @@
db = db.getSiblingDB('LogDB');
db.createCollection('Log');