diff --git a/docker-compose.yml b/docker-compose.yml index ef1240e..1836286 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,6 @@ services: dockerfile: ./nginx/Dockerfile restart: unless-stopped volumes: - - ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro - ./static:/static depends_on: - backend diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 673dbf0..0e0e22b 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -7,5 +7,7 @@ RUN npm run build FROM nginx:1.25.4-alpine COPY --from=build /app/dist /usr/share/nginx/html +RUN rm /etc/nginx/conf.d/default.conf +COPY ./nginx.conf /etc/nginx/conf.d EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]