123
This commit is contained in:
@ -19,7 +19,6 @@ services:
|
|||||||
dockerfile: ./nginx/Dockerfile
|
dockerfile: ./nginx/Dockerfile
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
||||||
- ./static:/static
|
- ./static:/static
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
|
|||||||
@ -7,5 +7,7 @@ RUN npm run build
|
|||||||
|
|
||||||
FROM nginx:1.25.4-alpine
|
FROM nginx:1.25.4-alpine
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
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
|
EXPOSE 80
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|||||||
Reference in New Issue
Block a user