mirror of
https://github.com/dartdavros/chatballs.git
synced 2026-10-05 09:14:58 +03:00
✨ feat(platform): isolate runtime surfaces
This commit is contained in:
1 parent
eac4aede40
commit
dd849fa2d4
38 files changed
+898
-456
No files matched your search
+24
-4
@@ -21,15 +21,15 @@ services:
|
||||
context: .
|
||||
dockerfile: apps/backend/Dockerfile
|
||||
|
||||
backend:
|
||||
backend-app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: apps/backend/Dockerfile
|
||||
command: >
|
||||
sh -c "python manage.py migrate --noinput &&
|
||||
uvicorn hub_backend.asgi:application --host 0.0.0.0 --port 8000 --reload"
|
||||
uvicorn hub_backend.asgi_app:application --host 0.0.0.0 --port 8000 --reload"
|
||||
ports:
|
||||
- "${BACKEND_PORT:-8010}:8000"
|
||||
- "${BACKEND_APP_PORT:-8010}:8000"
|
||||
volumes:
|
||||
- ./apps/backend:/app/apps/backend
|
||||
depends_on:
|
||||
@@ -40,6 +40,24 @@ services:
|
||||
redis:
|
||||
condition: service_healthy
|
||||
|
||||
backend-platform:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: apps/backend/Dockerfile
|
||||
command: uvicorn hub_backend.asgi_platform:application --host 0.0.0.0 --port 8000 --reload
|
||||
ports:
|
||||
- "${BACKEND_PLATFORM_PORT:-8011}:8000"
|
||||
volumes:
|
||||
- ./apps/backend:/app/apps/backend
|
||||
|
||||
backend-admin:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: apps/backend/Dockerfile
|
||||
command: uvicorn hub_backend.asgi_admin:application --host 0.0.0.0 --port 8000 --reload
|
||||
volumes:
|
||||
- ./apps/backend:/app/apps/backend
|
||||
|
||||
worker:
|
||||
build:
|
||||
context: .
|
||||
@@ -84,7 +102,9 @@ services:
|
||||
volumes:
|
||||
- ./deploy/nginx/local.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
depends_on:
|
||||
backend:
|
||||
backend-app:
|
||||
condition: service_healthy
|
||||
backend-platform:
|
||||
condition: service_healthy
|
||||
frontend:
|
||||
condition: service_started
|
||||
|
||||
Reference in new issue
Block a user