Fixed docker deploments, moved files to _folders in dispatch app

This commit is contained in:
PxlLoewe
2025-05-27 17:34:44 -07:00
parent 5d5b2dc91f
commit 571ddfba85
60 changed files with 251 additions and 406 deletions

View File

@@ -3,6 +3,12 @@ services:
build:
context: .
dockerfile: ./apps/dispatch/Dockerfile
args:
- NEXT_PUBLIC_DISPATCH_URL=$NEXT_PUBLIC_DISPATCH_URL
- NEXT_PUBLIC_HUB_URL=$NEXT_PUBLIC_HUB_URL
- NEXT_PUBLIC_DISPATCH_SERVICE_ID=1
- NEXT_PUBLIC_LIVEKIT_URL=$NEXT_PUBLIC_LIVEKIT_URL
- NEXT_PUBLIC_DISPATCH_SERVER_URL=$NEXT_PUBLIC_DISPATCH_SERVER_URL
container_name: dispatch
ports:
- "3001:3000"
@@ -41,14 +47,17 @@ services:
dockerfile: ./apps/dispatch-server/Dockerfile
container_name: dispatch-server
ports:
- "3003:3000"
- "3002:3000"
env_file:
- .env.prod
networks:
- postgres_network
- redis_network
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
postgres:
image: postgres:13
container_name: postgres
@@ -84,6 +93,10 @@ services:
- "6379:6379"
volumes:
- "redis_data:/data"
networks:
- redis_network
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
moodle_database:
container_name: moodle_database
@@ -141,6 +154,8 @@ networks:
postgres_network:
driver: bridge
redis_network:
driver: bridge
volumes:
postgres-data: