File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 22
33Dockerize in production a react application using express as server
44
5- ## Run application
5+ ## Run application without docker-compose
66
77```
88git clone https://github.com/maxgfr/docker-express-react.git
99cd docker-express-react
1010docker build -t docker-express-react .
1111docker run -it -p 80:80 docker-express-react # Then you can go to this URL : https://localhost/
1212```
13+
14+ ## Running application using docker-compose
15+
16+ ```
17+ git clone https://github.com/maxgfr/docker-express-react.git
18+ cd docker-express-react
19+ docker-compose up
20+ docker-compose down
21+ ```
Original file line number Diff line number Diff line change 1+ version : " 3.7"
2+
3+ services :
4+ app :
5+ container_name : app
6+ build :
7+ context : .
8+ dockerfile : ./Dockerfile
9+ restart : always
10+ ports :
11+ - 80:80
12+ volumes :
13+ - ./usr/src/app
14+ - /usr/src/app/node_modules
You can’t perform that action at this time.
0 commit comments