replace webapp with website

This commit is contained in:
Karol Wypchlo 2021-04-01 14:04:20 +02:00
parent 15d2655db3
commit d3357e6cbc
3 changed files with 12 additions and 20 deletions

View File

@ -13,9 +13,6 @@ networks:
config: config:
- subnet: 10.10.10.0/24 - subnet: 10.10.10.0/24
volumes:
webapp:
services: services:
sia: sia:
build: build:
@ -76,7 +73,6 @@ services:
- ./docker/data/nginx/logs:/usr/local/openresty/nginx/logs - ./docker/data/nginx/logs:/usr/local/openresty/nginx/logs
- ./docker/data/nginx/skynet:/data/nginx/skynet:ro - ./docker/data/nginx/skynet:/data/nginx/skynet:ro
- ./docker/data/sia/apipassword:/data/sia/apipassword:ro - ./docker/data/sia/apipassword:/data/sia/apipassword:ro
- webapp:/var/www/webportal:ro
networks: networks:
shared: shared:
ipv4_address: 10.10.10.30 ipv4_address: 10.10.10.30
@ -86,17 +82,7 @@ services:
- sia - sia
- health-check - health-check
- handshake-api - handshake-api
- website
webapp:
build:
context: ./packages/webapp
dockerfile: Dockerfile
container_name: webapp
restart: unless-stopped
logging: *default-logging
tty: true
volumes:
- webapp:/usr/app/public
website: website:
build: build:
@ -111,9 +97,9 @@ services:
- ./docker/data/website/.cache:/usr/app/.cache - ./docker/data/website/.cache:/usr/app/.cache
networks: networks:
shared: shared:
ipv4_address: 10.10.10.100 ipv4_address: 10.10.10.35
expose: expose:
- 3000 - 9000
handshake: handshake:
build: build:

View File

@ -77,7 +77,7 @@ server {
include /etc/nginx/conf.d/include/cors; include /etc/nginx/conf.d/include/cors;
root /var/www/webportal; proxy_pass http://website:9000;
} }
location /docs { location /docs {

View File

@ -7,9 +7,11 @@ WORKDIR /usr/app
COPY package.json . COPY package.json .
ENV GATSBY_TELEMETRY_DISABLED 1 ENV GATSBY_TELEMETRY_DISABLED 1
RUN yarn --no-lockfile --production RUN npm i --force
COPY data ./data
COPY src ./src COPY src ./src
COPY static ./static
COPY gatsby-browser.js . COPY gatsby-browser.js .
COPY gatsby-config.js . COPY gatsby-config.js .
COPY gatsby-node.js . COPY gatsby-node.js .
@ -17,4 +19,8 @@ COPY gatsby-ssr.js .
COPY postcss.config.js . COPY postcss.config.js .
COPY tailwind.config.js . COPY tailwind.config.js .
CMD ["sh", "-c", "yarn build && yarn serve"] RUN npm run build
EXPOSE 9000
CMD ["sh", "-c", "npm start"]