mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
ssl сертификат1
This commit is contained in:
@@ -13,7 +13,7 @@ RUN npm run build
|
||||
FROM nginx:alpine
|
||||
|
||||
# Установка certbot
|
||||
RUN apk add --no-cache certbot certbot-nginx
|
||||
RUN apk add --no-cache certbot certbot-nginx openssl
|
||||
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
COPY docker/frontend/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
@@ -28,6 +28,9 @@ COPY docker/frontend/init-ssl.sh /docker-entrypoint.d/init-ssl.sh
|
||||
RUN chmod +x /etc/periodic/daily/ssl-renew
|
||||
RUN chmod +x /docker-entrypoint.d/init-ssl.sh
|
||||
|
||||
# Создаем volumes для сертификатов
|
||||
VOLUME ["/etc/letsencrypt", "/var/www/certbot"]
|
||||
|
||||
EXPOSE 80 443
|
||||
|
||||
# Запускаем crond и nginx
|
||||
|
||||
Reference in New Issue
Block a user