dev: migration check (#3440)

* dev: wait for  migrations script for beat, worker, takeoff

* dev: update docker compose and migrator commands

* dev: migrator commands for self hosted setup

* dev: add recursive flag for chown
This commit is contained in:
Nikhil 2024-01-23 15:07:45 +05:30 committed by GitHub
parent 801f75f406
commit 512ad83c08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 69 additions and 13 deletions

View file

@ -122,6 +122,18 @@ services:
- plane-db
- plane-redis
migrator:
<<: *app-env
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-latest}
pull_policy: ${PULL_POLICY:-always}
restart: no
command: >
sh -c "python manage.py wait_for_db &&
python manage.py migrate"
depends_on:
- plane-db
- plane-redis
plane-db:
<<: *app-env
image: postgres:15.2-alpine