dev: add log paths in compose

This commit is contained in:
pablohashescobar 2024-03-15 17:27:59 +05:30
parent e9121b6798
commit 37b30fbce9

View File

@ -71,7 +71,7 @@ services:
deploy: deploy:
replicas: ${API_REPLICAS:-1} replicas: ${API_REPLICAS:-1}
volumes: volumes:
- logs/api:/code/plane/logs - logs_api:/code/plane/logs
depends_on: depends_on:
- plane-db - plane-db
- plane-redis - plane-redis
@ -83,7 +83,7 @@ services:
restart: unless-stopped restart: unless-stopped
command: ./bin/worker command: ./bin/worker
volumes: volumes:
- logs/worker:/code/plane/logs - logs_worker:/code/plane/logs
depends_on: depends_on:
- api - api
- plane-db - plane-db
@ -96,7 +96,7 @@ services:
restart: unless-stopped restart: unless-stopped
command: ./bin/beat command: ./bin/beat
volumes: volumes:
- logs/beat-worker:/code/plane/logs - logs_beat-worker:/code/plane/logs
depends_on: depends_on:
- api - api
- plane-db - plane-db
@ -111,7 +111,7 @@ services:
sh -c "python manage.py wait_for_db && sh -c "python manage.py wait_for_db &&
python manage.py migrate" python manage.py migrate"
volumes: volumes:
- logs/migrator:/code/plane/logs - logs_migrator:/code/plane/logs
depends_on: depends_on:
- plane-db - plane-db
- plane-redis - plane-redis
@ -157,4 +157,7 @@ volumes:
pgdata: pgdata:
redisdata: redisdata:
uploads: uploads:
logs: logs_api:
logs_worker:
logs_beat-worker:
logs_migrator: