fix: converting takeoff scripts to docker entry points

This commit is contained in:
sriram veeraghanta 2024-05-22 12:25:27 +05:30
parent e6d626fbc5
commit 1c377163d2
10 changed files with 21 additions and 260 deletions

View file

@ -6,7 +6,6 @@ volumes:
redisdata:
uploads:
pgdata:
services:
plane-redis:
@ -16,7 +15,7 @@ services:
- dev_env
volumes:
- redisdata:/data
plane-minio:
image: minio/minio
restart: unless-stopped
@ -30,7 +29,7 @@ services:
environment:
MINIO_ROOT_USER: ${AWS_ACCESS_KEY_ID}
MINIO_ROOT_PASSWORD: ${AWS_SECRET_ACCESS_KEY}
plane-db:
image: postgres:15.2-alpine
restart: unless-stopped
@ -98,13 +97,13 @@ services:
- dev_env
volumes:
- ./apiserver:/code
command: ./bin/takeoff.local
command: ./bin/docker-entry-api.sh
env_file:
- ./apiserver/.env
depends_on:
- plane-db
- plane-redis
worker:
build:
context: ./apiserver
@ -116,7 +115,7 @@ services:
- dev_env
volumes:
- ./apiserver:/code
command: ./bin/worker
command: ./bin/docker-entry-worker.sh
env_file:
- ./apiserver/.env
depends_on:
@ -135,7 +134,7 @@ services:
- dev_env
volumes:
- ./apiserver:/code
command: ./bin/beat
command: ./bin/docker-entry-beat.sh
env_file:
- ./apiserver/.env
depends_on:
@ -154,9 +153,7 @@ services:
- dev_env
volumes:
- ./apiserver:/code
command: >
sh -c "python manage.py wait_for_db --settings=plane.settings.local &&
python manage.py migrate --settings=plane.settings.local"
command: ./bin/docker-entry-migrator.sh --settings=plane.settings.local
env_file:
- ./apiserver/.env
depends_on: