bawling out

This commit is contained in:
Aquaticholic
2022-04-08 15:28:08 +01:00
parent dd7856ef97
commit 5c370423b3
7 changed files with 41 additions and 16 deletions
+19
View File
@@ -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
+8 -8
View File
@@ -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:
+1
View File
@@ -0,0 +1 @@
docker-compose -f docker-compose.nginx.yml up -d --build
+1
View File
@@ -10,4 +10,5 @@ RUN npm install
RUN npm install react-scripts
COPY . ./
#USER node
FROM nginx:1-alpine
CMD ["npm", "start"]
+7
View File
@@ -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;"]
+3 -6
View File
@@ -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/
+2 -2
View File
@@ -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"
},