5 changed files with 112 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||||||
|
**/.classpath |
||||||
|
**/.dockerignore |
||||||
|
**/.env |
||||||
|
**/.git |
||||||
|
**/.gitignore |
||||||
|
**/.project |
||||||
|
**/.settings |
||||||
|
**/.toolstarget |
||||||
|
**/.vs |
||||||
|
**/.vscode |
||||||
|
**/*.*proj.user |
||||||
|
**/*.dbmdl |
||||||
|
**/*.jfm |
||||||
|
**/azds.yaml |
||||||
|
**/bin |
||||||
|
**/charts |
||||||
|
**/docker-compose* |
||||||
|
**/Dockerfile* |
||||||
|
**/node_modules |
||||||
|
**/npm-debug.log |
||||||
|
**/obj |
||||||
|
**/secrets.dev.yaml |
||||||
|
**/values.dev.yaml |
||||||
|
README.md |
||||||
@ -0,0 +1,16 @@ |
|||||||
|
# base image |
||||||
|
FROM node:alpine |
||||||
|
|
||||||
|
# set working directory |
||||||
|
WORKDIR /app |
||||||
|
|
||||||
|
# add `/app/node_modules/.bin` to $PATH |
||||||
|
ENV PATH /app/node_modules/.bin:$PATH |
||||||
|
|
||||||
|
# install and cache app dependencies |
||||||
|
COPY package.json /app/package.json |
||||||
|
RUN npm install --silent |
||||||
|
RUN npm install react-scripts@3.0.1 -g --silent |
||||||
|
|
||||||
|
# start app |
||||||
|
CMD ["npm", "start"] |
||||||
@ -0,0 +1,10 @@ |
|||||||
|
version: '2.1' |
||||||
|
|
||||||
|
services: |
||||||
|
mern-todo-app: |
||||||
|
image: mern-todo-app |
||||||
|
build: |
||||||
|
context: . |
||||||
|
dockerfile: Dockerfile |
||||||
|
ports: |
||||||
|
- 3002:3002 |
||||||
@ -0,0 +1,31 @@ |
|||||||
|
version: "3.7" |
||||||
|
services: |
||||||
|
react: |
||||||
|
image: yutsuo/mern-todo-app |
||||||
|
container_name: mern-todo-app |
||||||
|
build: |
||||||
|
context: . |
||||||
|
args: |
||||||
|
- HTTP_PROXY=http://192.168.128.1:3128 |
||||||
|
- HTTPS_PROXY=http://192.168.128.1:3128 |
||||||
|
- http_proxy=http://192.168.128.1:3128 |
||||||
|
- https_proxy=http://192.168.128.1:3128 |
||||||
|
ports: |
||||||
|
- "3000:3000" |
||||||
|
volumes: |
||||||
|
- .:/app |
||||||
|
- /app/node_modules |
||||||
|
environment: |
||||||
|
- PORT=3000 |
||||||
|
- HTTP_PROXY=http://192.168.128.1:3128 |
||||||
|
- HTTPS_PROXY=http://192.168.128.1:3128 |
||||||
|
- http_proxy=http://192.168.128.1:3128 |
||||||
|
- https_proxy=http://192.168.128.1:3128 |
||||||
|
- NODE_ENV=development |
||||||
|
|
||||||
|
networks: |
||||||
|
default: |
||||||
|
ipam: |
||||||
|
driver: default |
||||||
|
config: |
||||||
|
- subnet: 172.17.0.0/24 |
||||||
@ -0,0 +1,31 @@ |
|||||||
|
version: "3.7" |
||||||
|
services: |
||||||
|
react: |
||||||
|
image: yutsuo/mern-todo-app |
||||||
|
container_name: mern-todo-app |
||||||
|
build: |
||||||
|
context: . |
||||||
|
args: |
||||||
|
- HTTP_PROXY=http://192.168.128.1:3128 |
||||||
|
- HTTPS_PROXY=http://192.168.128.1:3128 |
||||||
|
- http_proxy=http://192.168.128.1:3128 |
||||||
|
- https_proxy=http://192.168.128.1:3128 |
||||||
|
ports: |
||||||
|
- "3000:3000" |
||||||
|
volumes: |
||||||
|
- .:/app |
||||||
|
- /app/node_modules |
||||||
|
environment: |
||||||
|
- PORT=3000 |
||||||
|
- HTTP_PROXY=http://192.168.128.1:3128 |
||||||
|
- HTTPS_PROXY=http://192.168.128.1:3128 |
||||||
|
- http_proxy=http://192.168.128.1:3128 |
||||||
|
- https_proxy=http://192.168.128.1:3128 |
||||||
|
- NODE_ENV=development |
||||||
|
|
||||||
|
networks: |
||||||
|
default: |
||||||
|
ipam: |
||||||
|
driver: default |
||||||
|
config: |
||||||
|
- subnet: 172.17.0.0/24 |
||||||
Loading…
Reference in new issue