mirror of
https://github.com/Team4388/ScoutingApp2022.git
synced 2026-06-08 16:28:04 -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:
|
||||
scouting-webserver-prod:
|
||||
container_name: "production"
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
build:
|
||||
context: ./webserver
|
||||
dockerfile: ./Dockerfile.prod
|
||||
expose:
|
||||
- 80
|
||||
ports:
|
||||
- "80:80/tcp"
|
||||
# - "80:80/tcp"
|
||||
# - "443:443/tcp"
|
||||
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:
|
||||
# image: fsouza/docker-ssl-proxy
|
||||
# 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
|
||||
COPY . ./
|
||||
#USER node
|
||||
FROM nginx:1-alpine
|
||||
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
|
||||
|
||||
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;"]
|
||||
RUN mkdir /nooo/
|
||||
RUN mkdir /nooo/build/
|
||||
COPY --from=build-step /app/build /nooo/build/
|
||||
@@ -39,8 +39,8 @@
|
||||
"workbox-streams": "^5.1.4"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts --max_old_space_size=4096 start",
|
||||
"build": "react-scripts --max_old_space_size=4096 build",
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user