Moved from rancher-nfs to local volume mounting
This commit is contained in:
@@ -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
|
||||
- /RancherCattleData/${DATA_DIR}/Data:/data
|
||||
@@ -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
|
||||
- /RancherCattleData/${DATA_DIR}/Data:/data
|
||||
- /RancherCattleData/${DATA_DIR}/Repo:/repo
|
||||
@@ -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
|
||||
external: true
|
||||
@@ -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
|
||||
external: true
|
||||
@@ -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
|
||||
external: true
|
||||
Reference in New Issue
Block a user