Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: DB 파트 Dockerfile #35

Merged
merged 1 commit into from
Oct 12, 2022
Merged

Feat: DB 파트 Dockerfile #35

merged 1 commit into from
Oct 12, 2022

Conversation

yoopark
Copy link
Collaborator

@yoopark yoopark commented Oct 12, 2022

Dockerfile을 만들어본 적이 없어서 이렇게 하는게 맞나 싶긴 한데, 한번 만들어보았습니다.
우선 mysql:latest를 사용해도 될지도 의문이네요. 5.7 버전으로 꼭 해야한다면 답글 달아주시기 바랍니다.

WEB(BE) 폴더에 database 폴더를 새로 만들어 그 안에 Dockerfile을 넣어두었습니다.
docker-compose up -d 명령어를 통해 실행할 수 있으며, 이 명령어로 만들어지는 컨테이너는 #32 에서 도입된 원격 MySQL 서버랑은 아예 다릅니다. 아마 개발할 때는 원격 MySQL 서버로 계속 해보고 나중에 배포할 때 이 docker-compose로 만든 MySQL을 사용할 것 같네요.

dummy를 Dockerfile 내에서 그냥 넣어버리면 배포할 때 취지랑 맞지 않는 것 같아서 (그런데 시연할 때는 데이터가 있긴 해야하니까 나중에 잘 만든 더미를 넣긴 해야할 것 같아요) 일단은 파일만 넣어두고 실행은 별도로 하는 식으로 구성해보았습니다.

@yoopark yoopark merged commit 61f620e into osamhack2022:main Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant