Skip to content

yjw2288/cancun-test

Repository files navigation

docker 실행방법
1. nginx 빌드
docker build --tag='cancun/nginx'  -f nginx/Dockerfile .
docker build --tag='cancun/app' .

2. nginx 이미지로 도커 실행
docker run -p 80:80 -d --name nginx nginx

3. nginx 쉘에 접근
docker exec -i -t nginx bash

* app 구동할 때 app에서 로컬 디비 연결될 수 있도록 설정
docker run -p 8080:8080 --net=host  -d --name app app

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published