Update docker files
This commit is contained in:
@@ -0,0 +1,21 @@
|
|||||||
|
services:
|
||||||
|
frontend:
|
||||||
|
build: ./frontend
|
||||||
|
ports:
|
||||||
|
- 80:80
|
||||||
|
- 443:443
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./frontend:/usr/share/nginx/html:ro
|
||||||
|
- /etc/letsencrypt:/etc/letsencrypt:ro
|
||||||
|
- ./frontend/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
|
networks:
|
||||||
|
- blog
|
||||||
|
|
||||||
|
networks:
|
||||||
|
blog:
|
||||||
|
driver: bridge
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
frontend:
|
||||||
|
driver: local
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
FROM nginx:alpine3.22
|
FROM nginx:alpine3.22
|
||||||
|
|
||||||
|
EXPOSE 80 443
|
||||||
|
|
||||||
COPY . /
|
COPY . /
|
||||||
|
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user