1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

ssl сертификат1

This commit is contained in:
MoonTestUse1
2025-01-03 00:26:36 +06:00
parent a88ca1fe14
commit bd5e070a18
3 changed files with 56 additions and 35 deletions

View File

@@ -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