local에서 front와 back을 docker hub에 올려두고 docker-compose run시켰다
구조는 80->3333->80 순서의 간단한 구조였다
cloud9의 ec2에서도 허브에 있는 front와,back을 docker-compose-up 시킨다
여기서 ec2의 퍼블릭 80으로 들어가면 cors위반에러가 발생하는데
backend의 app.js에서 cors를 사용한다고 고쳐주면 해결된다
const express = require('express')
const cors = require('cors')
const app = express()
app.use(cors())