domain updates
CI / Lint, types, build, tests (push) Canceled after 0s
CI / Docker images build (push) Canceled after 0s

This commit is contained in:
olehhapuk
2026-12-03 12:27:03 +02:00
parent d47863f653
commit ea1f5f8b16
3 changed files with 42 additions and 24 deletions
+20 -9
View File
@@ -2,6 +2,12 @@
# cp .env.example .env # then fill it in
# docker compose up -d --build
# Development uses docker-compose.local.yml instead. See README.md.
#
# The server's own Caddy (a separate compose project) is the way in: it loads
# deploy/Caddyfile and reaches these services over the shared "web" network.
# Every project on that network sees the others' service names, so the three
# services that join it carry the project's name: a plain "web" or "api" would
# answer for another project's lookups, and theirs for ours.
name: electro4ort
x-api: &api
@@ -26,21 +32,21 @@ x-api: &api
S3_SECRET_ACCESS_KEY: ${S3_SECRET_ACCESS_KEY:-}
# Browsers come in through Caddy; the API asks over the private network.
LIVEKIT_URL: wss://livekit.${DOMAIN}
LIVEKIT_INTERNAL_URL: http://livekit:7880
LIVEKIT_INTERNAL_URL: http://electro4ort-livekit:7880
LIVEKIT_API_KEY: ${LIVEKIT_API_KEY:?set LIVEKIT_API_KEY in .env}
LIVEKIT_API_SECRET: ${LIVEKIT_API_SECRET:?set LIVEKIT_API_SECRET in .env}
services:
web:
electro4ort-web:
build:
context: .
target: web
args:
VITE_API_URL: https://api.${DOMAIN}
networks:
- web
image: electro4ort-web
restart: unless-stopped
networks:
- web # only the proxy talks to it
# Brings the database up to this version, then exits. The API waits for it.
migrate:
@@ -53,13 +59,14 @@ services:
postgres:
condition: service_healthy
api:
electro4ort-api:
<<: *api
volumes:
# Uploaded files, while STORAGE_DRIVER is "local".
- files:/data/files
networks:
- web
- default # reaches postgres, redis and livekit
- web # shared with the proxy
depends_on:
migrate:
condition: service_completed_successfully
@@ -94,8 +101,9 @@ services:
retries: 10
# Voice and video. Signalling comes through Caddy; the media goes straight
# between browsers and these two ports, which the firewall must let in.
livekit:
# between browsers and these two ports, which the router and the firewall
# must let in.
electro4ort-livekit:
image: livekit/livekit-server:v1.13
restart: unless-stopped
environment:
@@ -110,10 +118,13 @@ services:
webhook:
api_key: ${LIVEKIT_API_KEY}
urls:
- http://api:3000/livekit/webhook
- http://electro4ort-api:3000/livekit/webhook
ports:
- "7881:7881"
- "7882:7882/udp"
networks:
- default # reaches the API, for the webhook
- web # shared with the proxy
volumes:
postgres-data: