From eda68948634de7175a6efda865c93f1b7551100b Mon Sep 17 00:00:00 2001 From: Rodolfo Berrios <20590102+rodber@users.noreply.github.com> Date: Sat, 20 Nov 2021 20:28:28 -0300 Subject: [PATCH] content volume --- httpd-php-dev.yml | 2 ++ httpd-php.Dockerfile | 1 + httpd-php.yml | 7 ++++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/httpd-php-dev.yml b/httpd-php-dev.yml index a9dbf99..2ac0234 100644 --- a/httpd-php-dev.yml +++ b/httpd-php-dev.yml @@ -22,6 +22,7 @@ services: - chevereto volumes: - storage:/var/www/html/images/ + - content:/var/www/html/content/ - app:/var/www/html/ - type: bind source: ${SOURCE} @@ -40,6 +41,7 @@ services: volumes: database: + content: storage: app: diff --git a/httpd-php.Dockerfile b/httpd-php.Dockerfile index b8f6469..e9734b4 100644 --- a/httpd-php.Dockerfile +++ b/httpd-php.Dockerfile @@ -70,6 +70,7 @@ RUN set -eux; \ } > $PHP_INI_DIR/conf.d/php.ini VOLUME /var/www/html +VOLUME /var/www/html/content VOLUME /var/www/html/images COPY . /var/www/html diff --git a/httpd-php.yml b/httpd-php.yml index 03d0e01..def93c4 100644 --- a/httpd-php.yml +++ b/httpd-php.yml @@ -7,7 +7,7 @@ services: networks: - chevereto volumes: - - data:/var/lib/mysql + - database:/var/lib/mysql restart: always environment: MYSQL_ROOT_PASSWORD: password @@ -22,7 +22,7 @@ services: - chevereto volumes: - storage:/var/www/html/images/ - - app:/var/www/html/ + - content:/var/www/html/content/ ports: - 8810:80 restart: always @@ -36,7 +36,8 @@ services: CHEVERETO_HTTPS: 0 volumes: - data: + database: + content: storage: app: