Hi Ńommunity Frontity I have a problem - I canât install nginx along with frontity
My docker-compose.yml
version: '3.7'
services:
sample:
container_name: frontity_container
build:
context: .
dockerfile: Dockerfile
volumes:
- '.:/app'
- '/app/node_modules'
ports:
- 3000:3000
environment:
FRONTITY_URL: 'http://localhost'
WP_URL: 'https://....'
nginx:
container_name: "nginx"
build: ./nginx
ports:
- 80:80
depends_on:
- sample
My Dockerfile
FROM node:13.12.0-alpine
# set working directory
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
# install app dependencies
COPY package.json ./
COPY package-lock.json ./
RUN npm install
# add app
COPY . ./
RUN npx frontity build
RUN apk add --no-cache --upgrade bash
CMD ["npx", "frontity", "dev"]
My nginx.conf
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Can you tell me where my mistake is or throw off the guide for running docker + nginx + frontity, I tried to repeat from this article (Deploy Frontity on NGINX Server) but my app is not running
Thank you in advance