Files
ScreenShare/docker-compose.yml
T

56 lines
1.3 KiB
YAML

services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 10
livekit:
image: livekit/livekit-server:v1.9.10
command: --config /etc/livekit.yaml
volumes:
- ./infra/livekit/livekit.yaml:/etc/livekit.yaml:ro
environment:
LIVEKIT_KEYS: "${LIVEKIT_API_KEY}: ${LIVEKIT_API_SECRET}"
ports:
- "7880:7880"
- "7881:7881"
- "50000-50100:50000-50100/udp"
api:
build:
context: ./apps/ScreenShareApi
env_file: .env
environment:
PORT: 8080
LIVEKIT_API_KEY: ${LIVEKIT_API_KEY}
LIVEKIT_API_SECRET: ${LIVEKIT_API_SECRET}
LIVEKIT_PUBLIC_URL: ${LIVEKIT_PUBLIC_URL:-ws://localhost:7880}
depends_on:
- livekit
ports:
- "8080:8080"
web:
build:
context: ./apps/ScreenShareWeb
environment:
VITE_API_PROXY_TARGET: http://api:8080
depends_on:
- api
ports:
- "5173:5173"
volumes:
postgres-data: