mirror of
https://github.com/Team4388/ScoutingApp2022.git
synced 2026-06-09 00:38:03 -06:00
bawling out
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
scouting-webserver-nginx:
|
||||||
|
container_name: "production"
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
build:
|
||||||
|
context: ./webserver
|
||||||
|
dockerfile: ./Dockerfile.nginx
|
||||||
|
expose:
|
||||||
|
- 80
|
||||||
|
ports:
|
||||||
|
- "80:80/tcp"
|
||||||
|
volumes:
|
||||||
|
- ./build:/usr/share/nginx/html
|
||||||
|
- ./webserver/nginx:/etc/nginx/:ro
|
||||||
@@ -3,20 +3,20 @@ version: "3"
|
|||||||
services:
|
services:
|
||||||
scouting-webserver-prod:
|
scouting-webserver-prod:
|
||||||
container_name: "production"
|
container_name: "production"
|
||||||
restart: unless-stopped
|
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
build:
|
build:
|
||||||
context: ./webserver
|
context: ./webserver
|
||||||
dockerfile: ./Dockerfile.prod
|
dockerfile: ./Dockerfile.prod
|
||||||
expose:
|
|
||||||
- 80
|
|
||||||
ports:
|
|
||||||
- "80:80/tcp"
|
|
||||||
# - "80:80/tcp"
|
|
||||||
# - "443:443/tcp"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./webserver/nginx:/etc/nginx/:ro
|
- ./webserver:/app
|
||||||
|
# - ./webserver/build/:/app/build/
|
||||||
|
- ./webserver/build:/nooo/build
|
||||||
|
# - '/app/node_modules'
|
||||||
|
# - './webserver/public:/app/public/'
|
||||||
|
# - '/app/public/'
|
||||||
|
# - '/app/src/'
|
||||||
|
# - ./webserver/nginx:/etc/nginx/:ro
|
||||||
# ssl-proxy:
|
# ssl-proxy:
|
||||||
# image: fsouza/docker-ssl-proxy
|
# image: fsouza/docker-ssl-proxy
|
||||||
# ports:
|
# ports:
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
docker-compose -f docker-compose.nginx.yml up -d --build
|
||||||
@@ -10,4 +10,5 @@ RUN npm install
|
|||||||
RUN npm install react-scripts
|
RUN npm install react-scripts
|
||||||
COPY . ./
|
COPY . ./
|
||||||
#USER node
|
#USER node
|
||||||
|
FROM nginx:1-alpine
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
FROM nginx:1-alpine
|
||||||
|
# COPY --from=build-step /app/build /usr/share/nginx/html
|
||||||
|
RUN rm /etc/nginx/conf.d/default.conf
|
||||||
|
# COPY nginx/nginx.conf /etc/nginx/conf.d
|
||||||
|
EXPOSE 80
|
||||||
|
# EXPOSE 443
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
@@ -13,9 +13,6 @@ COPY . ./
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:1-alpine
|
FROM nginx:1-alpine
|
||||||
COPY --from=build-step /app/build /usr/share/nginx/html
|
RUN mkdir /nooo/
|
||||||
RUN rm /etc/nginx/conf.d/default.conf
|
RUN mkdir /nooo/build/
|
||||||
# COPY nginx/nginx.conf /etc/nginx/conf.d
|
COPY --from=build-step /app/build /nooo/build/
|
||||||
EXPOSE 80
|
|
||||||
# EXPOSE 443
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
|
||||||
@@ -39,8 +39,8 @@
|
|||||||
"workbox-streams": "^5.1.4"
|
"workbox-streams": "^5.1.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts --max_old_space_size=4096 start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts --max_old_space_size=4096 build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"eject": "react-scripts eject"
|
"eject": "react-scripts eject"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user