From 4aab1c886bf2ef12ecb7db44c4aebf4096eac0df Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Thu, 20 Sep 2018 22:58:57 -0400 Subject: [PATCH] Moved from rancher-nfs to local volume mounting --- templates/Bind/0/docker-compose.yml | 10 +------ .../EclipseChe-Single/0/docker-compose.yml | 18 ++---------- templates/Ghost/0/docker-compose.yml | 12 ++------ templates/InvoiceNinja/0/docker-compose.yml | 28 +++---------------- templates/Nextcloud/0/docker-compose.yml | 28 +++---------------- 5 files changed, 13 insertions(+), 83 deletions(-) diff --git a/templates/Bind/0/docker-compose.yml b/templates/Bind/0/docker-compose.yml index 27a4fc8..0b922a6 100644 --- a/templates/Bind/0/docker-compose.yml +++ b/templates/Bind/0/docker-compose.yml @@ -23,12 +23,4 @@ services: {{- end}} restart: on-failure volumes: - - Data:/data - -volumes: - Data: - driver: rancher-nfs - driver_opts: - host: 10.0.10.21 - export: /RancherCattleData/${DATA_DIR}/Data - onRemove: retain \ No newline at end of file + - /RancherCattleData/${DATA_DIR}/Data:/data \ No newline at end of file diff --git a/templates/EclipseChe-Single/0/docker-compose.yml b/templates/EclipseChe-Single/0/docker-compose.yml index 8174171..7771f09 100644 --- a/templates/EclipseChe-Single/0/docker-compose.yml +++ b/templates/EclipseChe-Single/0/docker-compose.yml @@ -33,19 +33,5 @@ services: restart: on-failure volumes: - /var/run/docker.sock:/var/run/docker.sock - - Data:/data - - Repo:/repo - -volumes: - Data: - driver: rancher-nfs - driver_opts: - host: 10.0.10.21 - export: /RancherCattleData/${DATA_DIR}/Data - onRemove: retain - Repo: - driver: rancher-nfs - driver_opts: - host: 10.0.10.21 - export: /RancherCattleData/${DATA_DIR}/Repo - onRemove: retain \ No newline at end of file + - /RancherCattleData/${DATA_DIR}/Data:/data + - /RancherCattleData/${DATA_DIR}/Repo:/repo \ No newline at end of file diff --git a/templates/Ghost/0/docker-compose.yml b/templates/Ghost/0/docker-compose.yml index 7b30b9b..e81ce97 100644 --- a/templates/Ghost/0/docker-compose.yml +++ b/templates/Ghost/0/docker-compose.yml @@ -30,16 +30,8 @@ services: - "${WEB_PORT}:2368" restart: on-failure volumes: - - Content:/var/lib/ghost/content + - /RancherCattleData/${DATA_DIR}/Content:/var/lib/ghost/content networks: public-proxy: - external: true - -volumes: - Content: - driver: rancher-nfs - driver_opts: - host: 10.0.10.21 - export: /RancherCattleData/${DATA_DIR}/Content - onRemove: retain \ No newline at end of file + external: true \ No newline at end of file diff --git a/templates/InvoiceNinja/0/docker-compose.yml b/templates/InvoiceNinja/0/docker-compose.yml index b5f6026..3990bdb 100644 --- a/templates/InvoiceNinja/0/docker-compose.yml +++ b/templates/InvoiceNinja/0/docker-compose.yml @@ -32,8 +32,8 @@ services: - mysql restart: on-failure volumes: - - Logo:/var/www/app/public/logo - - Storage:/var/www/app/storage + - /RancherCattleData/${DATA_DIR}/Logo:/var/www/app/public/logo + - /RancherCattleData/${DATA_DIR}/Storage:/var/www/app/storage cron: image: invoiceninja/invoiceninja:latest dns: @@ -93,7 +93,7 @@ services: {{- end}} restart: on-failure volumes: - - Database:/var/lib/mysql + - /RancherCattleData/${DATA_DIR}/Database:/var/lib/mysql web: image: nginx command: [nginx-debug, '-g', 'daemon off;'] @@ -128,24 +128,4 @@ services: networks: public-proxy: - external: true - -volumes: - Database: - driver: rancher-nfs - driver_opts: - host: 10.0.10.21 - export: /RancherCattleData/${DATA_DIR}/Database - onRemove: retain - Logo: - driver: rancher-nfs - driver_opts: - host: 10.0.10.21 - export: /RancherCattleData/${DATA_DIR}/Logo - onRemove: retain - Storage: - driver: rancher-nfs - driver_opts: - host: 10.0.10.21 - export: /RancherCattleData/${DATA_DIR}/Storage - onRemove: retain \ No newline at end of file + external: true \ No newline at end of file diff --git a/templates/Nextcloud/0/docker-compose.yml b/templates/Nextcloud/0/docker-compose.yml index 91dc47a..2b9eb8d 100644 --- a/templates/Nextcloud/0/docker-compose.yml +++ b/templates/Nextcloud/0/docker-compose.yml @@ -36,8 +36,8 @@ services: - "${WEB_PORT}:80" restart: on-failure volumes: - - Application:/var/www/html - - UserData:/var/www/html/data + - /RancherCattleData/${DATA_DIR}/Application:/var/www/html + - /RancherCattleData/${DATA_DIR}/UserData:/var/www/html/data mysql: image: mysql:5 dns: @@ -55,28 +55,8 @@ services: {{- end}} restart: on-failure volumes: - - Database:/var/lib/mysql + - /RancherCattleData/${DATA_DIR}/Database:/var/lib/mysql networks: public-proxy: - external: true - -volumes: - Application: - driver: rancher-nfs - driver_opts: - host: 10.0.10.21 - export: /RancherCattleData/${DATA_DIR}/Application - onRemove: retain - Database: - driver: rancher-nfs - driver_opts: - host: 10.0.10.21 - export: /RancherCattleData/${DATA_DIR}/Database - onRemove: retain - UserData: - driver: rancher-nfs - driver_opts: - host: 10.0.10.21 - export: /RancherCattleData/${DATA_DIR}/UserData - onRemove: retain \ No newline at end of file + external: true \ No newline at end of file