feat: auto migrate on container start if AUTO_MIGRATE set

This commit is contained in:
Revant Nandgaonkar
2020-03-21 15:47:35 +05:30
parent 7c356ccb27
commit 674c766480
4 changed files with 116 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ services:
- REDIS_QUEUE=redis-queue:6379
- REDIS_SOCKETIO=redis-socketio:6379
- SOCKETIO_PORT=9000
- AUTO_MIGRATE=1
volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw
- assets-vol:/home/frappe/frappe-bench/sites/assets:rw

View File

@@ -37,6 +37,7 @@ services:
- REDIS_QUEUE=redis-queue:6379
- REDIS_SOCKETIO=redis-socketio:6379
- SOCKETIO_PORT=9000
- AUTO_MIGRATE=1
volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw
- assets-vol:/home/frappe/frappe-bench/sites/assets:rw