- conf/nginx.conf 에 server_name을 본인 본인 서버의 도메인으로 변경한다.
.env 파일의 CLIENT_ORIGIN과 CLIENT_API_BASE_URL을 각각 http://내ip:3000 http://내ip:8080/api로 바꾼다
We can easily run the whole with only a single command:
docker-compose upDocker will pull the MySQL and Node.js images (if our machine does not have it before).
The services can be run on the background with command:
docker-compose up -dStopping all the running containers is also simple with a single command:
docker-compose downIf you need to stop and remove all containers, networks, and all images used by any service in docker-compose.yml file, use the command:
docker-compose down --rmi allFor more detail, please visit:
Related Posts:
React + Node.js Express: User Authentication with JWT example
Integration (run back-end & front-end on same server/port)