From f68532f4bb209de2f24ed106fc6a3613ceebebdc Mon Sep 17 00:00:00 2001 From: kj Date: Wed, 27 Nov 2024 16:34:26 -0400 Subject: [PATCH] Move SSL certificate to works as a volume. --- Dockerfile | 3 --- docker-compose.yml | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 630f62d..630984b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,9 +38,6 @@ RUN chmod +x /usr/local/bin/addsubdomain COPY bin/mysql_configure /usr/local/bin/mysql_configure RUN chmod +x /usr/local/bin/mysql_configure -# Colocamos dentro el certificado SSL -COPY ssl /etc/nginx/ssl - # ConfiguraciĆ³n de puertos EXPOSE 80 EXPOSE 443 diff --git a/docker-compose.yml b/docker-compose.yml index 664575b..ae87f8d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,3 +12,4 @@ services: - ./data/nginx/sites-available:/etc/nginx/sites-available:Z - ./data/nginx/sites-enabled:/etc/nginx/sites-enabled:Z - ./data/mysql/:/var/lib/mysql/:Z + - ./ssl:/etc/nginx/ssl:Z