강의

멘토링

커뮤니티

Inflearn Community Q&A

yhwjjang19954515's profile image
yhwjjang19954515

asked

Learning Docker and CI Environments by Following Along [Updated 2023.11]

Creating an API for Travis CI to access AWS

502 에러가 발생합니다.

Written on

·

434

0

https://github.com/rere950303/react
 
이유를 모르겠습니다....Docker running on 64bit Amazon Linux 2 플랫폼입니다.
githubawsdocker데이터 엔지니어링travis-cicicd

Answer 3

1

John Ahn님의 프로필 이미지
John Ahn
Instructor

안녕하세요 !!! 

보니깐 docker-compose.yml 파일을   개발환경것으로 사용하신것 같습니다. 

version: "3"
services:
react:
build:
context: .
dockerfile: Dockerfile
ports:
- '80:80'
volumes:
- /usr/src/app/node_modules
- ./:/usr/src/app
stdin_open: true

이걸로 바꿔주시겠어요 ?

0

rere님의 프로필 이미지
rere
Questioner

궁금한게 Travis Ci에서 .dev로 테스트하고 성공하면 EB에 배포가 되는것인데 그럼 eb에서는 docker-compose.yml 을 토대로 dockerfile을 가지고 다시 이미지 생성후 컨테이너를 만드는 것인가요?? 만약 그렇다면 travis에서 EB로 배포되는 것은 아무것도 없는것 아닌가요?

0

rere님의 프로필 이미지
rere
Questioner

elb랑 ec2 사이 통신문제인것 같은데 몇시간째 구글링을 해도 해결책을 모르겠습니다...ㅠㅠㅠㅠㅠ

yhwjjang19954515's profile image
yhwjjang19954515

asked

Ask a question