changed dockerfile for hub-server, copied files for Hub and dispatch-server

This commit is contained in:
PxlLoewe
2025-05-27 01:07:04 -07:00
parent aeace37f9c
commit f54d3ab040
7 changed files with 384 additions and 23 deletions

View File

@@ -3,28 +3,52 @@ services:
build:
context: .
dockerfile: ./apps/dispatch/Dockerfile
args:
# alle Variablen aus .env.prod automatisch übernehmen
# NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
# NEXTAUTH_HUB_SECRET: ${NEXTAUTH_HUB_SECRET}
# NEXTAUTH_COOKIE_PREFIX: ${NEXTAUTH_COOKIE_PREFIX}
# NEXT_PUBLIC_DISPATCH_SERVER_URL: ${NEXT_PUBLIC_DISPATCH_SERVER_URL}
# NEXTAUTH_URL: ${NEXTAUTH_URL}
# NEXT_PUBLIC_HUB_URL: ${NEXT_PUBLIC_HUB_URL}
# NEXT_PUBLIC_PUBLIC_URL: ${NEXT_PUBLIC_PUBLIC_URL}
# NEXT_PUBLIC_SERVICE_ID: ${NEXT_PUBLIC_SERVICE_ID}
DATABASE_URL: ${DATABASE_URL}
# NEXT_PUBLIC_LIVEKIT_URL: ${NEXT_PUBLIC_LIVEKIT_URL}
# LIVEKIT_API_KEY: ${LIVEKIT_API_KEY}
# LIVEKIT_API_SECRET: ${LIVEKIT_API_SECRET}
container_name: dispatch
ports:
- "3001:3000"
- "3001:3001"
env_file:
- ./apps/dispatch/.env
- .env.prod
networks:
- postgres_network
hub:
build:
context: .
dockerfile: ./apps/hub/Dockerfile
container_name: hub
ports:
- "3000:3000"
env_file:
- .env.prod
networks:
- postgres_network
hub-server:
build:
context: .
dockerfile: ./apps/hub-server/Dockerfile
container_name: hub-server
ports:
- "3003:3000"
env_file:
- .env.prod
networks:
- postgres_network
depends_on:
postgres:
condition: service_healthy
dispatch-server:
build:
context: .
dockerfile: ./apps/dispatch-server/Dockerfile
container_name: dispatch-server
ports:
- "3003:3000"
env_file:
- .env.prod
networks:
- postgres_network
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:13
container_name: postgres