Do not use file system volume for sites

This commit is contained in:
Tim Bolender 2020-04-14 17:23:27 +02:00
parent b554c37148
commit 6fb8f2d654
3 changed files with 24 additions and 21 deletions

View File

@ -28,7 +28,7 @@ services:
- frappe-worker-long - frappe-worker-long
- frappe-worker-short - frappe-worker-short
volumes: volumes:
- ./sites:/var/www/html/sites:rw - sites-vol:/var/www/html/sites:rw
- assets-vol:/assets:rw - assets-vol:/assets:rw
[app]-python: [app]-python:
@ -44,7 +44,7 @@ services:
- REDIS_SOCKETIO=redis-socketio:6379 - REDIS_SOCKETIO=redis-socketio:6379
- SOCKETIO_PORT=9000 - SOCKETIO_PORT=9000
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
- assets-vol:/home/frappe/frappe-bench/sites/assets:rw - assets-vol:/home/frappe/frappe-bench/sites/assets:rw
frappe-socketio: frappe-socketio:
@ -55,7 +55,7 @@ services:
links: links:
- redis-socketio - redis-socketio
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
frappe-worker-default: frappe-worker-default:
image: [app]-worker image: [app]-worker
@ -68,7 +68,7 @@ services:
- redis-queue - redis-queue
- redis-cache - redis-cache
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
frappe-worker-short: frappe-worker-short:
image: [app]-worker image: [app]-worker
@ -83,7 +83,7 @@ services:
- redis-queue - redis-queue
- redis-cache - redis-cache
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
frappe-worker-long: frappe-worker-long:
image: [app]-worker image: [app]-worker
@ -98,7 +98,7 @@ services:
- redis-queue - redis-queue
- redis-cache - redis-cache
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
frappe-schedule: frappe-schedule:
image: [app]-worker image: [app]-worker
@ -111,7 +111,8 @@ services:
- redis-queue - redis-queue
- redis-cache - redis-cache
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
volumes: volumes:
assets-vol: assets-vol:
sites-vol:

View File

@ -25,7 +25,7 @@ services:
- frappe-worker-long - frappe-worker-long
- frappe-worker-short - frappe-worker-short
volumes: volumes:
- ./sites:/var/www/html/sites:rw - sites-vol:/var/www/html/sites:rw
- assets-vol:/assets:rw - assets-vol:/assets:rw
erpnext-python: erpnext-python:
@ -39,7 +39,7 @@ services:
- SOCKETIO_PORT=9000 - SOCKETIO_PORT=9000
- AUTO_MIGRATE=1 - AUTO_MIGRATE=1
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
- assets-vol:/home/frappe/frappe-bench/sites/assets:rw - assets-vol:/home/frappe/frappe-bench/sites/assets:rw
frappe-socketio: frappe-socketio:
@ -50,7 +50,7 @@ services:
links: links:
- redis-socketio - redis-socketio
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
frappe-worker-default: frappe-worker-default:
image: frappe/erpnext-worker:${VERSION} image: frappe/erpnext-worker:${VERSION}
@ -63,7 +63,7 @@ services:
- redis-queue - redis-queue
- redis-cache - redis-cache
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
frappe-worker-short: frappe-worker-short:
image: frappe/erpnext-worker:${VERSION} image: frappe/erpnext-worker:${VERSION}
@ -78,7 +78,7 @@ services:
- redis-queue - redis-queue
- redis-cache - redis-cache
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
frappe-worker-long: frappe-worker-long:
image: frappe/erpnext-worker:${VERSION} image: frappe/erpnext-worker:${VERSION}
@ -93,7 +93,7 @@ services:
- redis-queue - redis-queue
- redis-cache - redis-cache
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
frappe-schedule: frappe-schedule:
image: frappe/erpnext-worker:${VERSION} image: frappe/erpnext-worker:${VERSION}
@ -106,7 +106,8 @@ services:
- redis-queue - redis-queue
- redis-cache - redis-cache
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
volumes: volumes:
assets-vol: assets-vol:
sites-vol:

View File

@ -25,7 +25,7 @@ services:
- frappe-worker-long - frappe-worker-long
- frappe-worker-short - frappe-worker-short
volumes: volumes:
- ./sites:/var/www/html/sites:rw - sites-vol:/var/www/html/sites:rw
- assets-vol:/assets:rw - assets-vol:/assets:rw
frappe-python: frappe-python:
@ -39,7 +39,7 @@ services:
- SOCKETIO_PORT=9000 - SOCKETIO_PORT=9000
- AUTO_MIGRATE=1 - AUTO_MIGRATE=1
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
- assets-vol:/home/frappe/frappe-bench/sites/assets:rw - assets-vol:/home/frappe/frappe-bench/sites/assets:rw
frappe-socketio: frappe-socketio:
@ -50,7 +50,7 @@ services:
links: links:
- redis-socketio - redis-socketio
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
frappe-worker-default: frappe-worker-default:
image: frappe/frappe-worker:${VERSION} image: frappe/frappe-worker:${VERSION}
@ -63,7 +63,7 @@ services:
- redis-queue - redis-queue
- redis-cache - redis-cache
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
frappe-worker-short: frappe-worker-short:
image: frappe/frappe-worker:${VERSION} image: frappe/frappe-worker:${VERSION}
@ -78,7 +78,7 @@ services:
- redis-queue - redis-queue
- redis-cache - redis-cache
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
frappe-worker-long: frappe-worker-long:
image: frappe/frappe-worker:${VERSION} image: frappe/frappe-worker:${VERSION}
@ -93,7 +93,7 @@ services:
- redis-queue - redis-queue
- redis-cache - redis-cache
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
frappe-schedule: frappe-schedule:
image: frappe/frappe-worker:${VERSION} image: frappe/frappe-worker:${VERSION}
@ -106,7 +106,8 @@ services:
- redis-queue - redis-queue
- redis-cache - redis-cache
volumes: volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
volumes: volumes:
assets-vol: assets-vol:
sites-vol: