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

서버 환경 셋팅 #31

Open
7 tasks done
sooyoungh opened this issue Jun 28, 2023 · 0 comments
Open
7 tasks done

서버 환경 셋팅 #31

sooyoungh opened this issue Jun 28, 2023 · 0 comments

Comments

@sooyoungh
Copy link
Member

sooyoungh commented Jun 28, 2023

  • 멀티 모듈 셋팅 시 참고 #32
  • AWS EC2
  • MySQL -AWS RDS 연동
  • MongoDB - Altas 연동
  • redis - AWS Elastic Cache 연동 -> 그냥 EC2에 redis 설치하는 걸로 변경
  • docker-compose
  • Github Actions CI/CD 연동

환경 변수

  1. ec2의 .env 파일에 모아두고 (ex. 변수명=값)
  2. docker-compose.yml의 environment에 ${변수명}을 지정해주면
  3. application.yml의 ${변수명}에 주입됨

=> EC2에서 docker-compose 직접 실행 시 .env의 변수를 읽어와서 이 방법이 가능했으나,
Github Actions 사용 시, 해당 변수 못 읽어서 일단 ec2의 docker-compose.yml에 변수 직접 입력

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

No branches or pull requests

1 participant