feat(docker): Docker secrets + coturn/ollama/redis
This commit is contained in:
1 parent
6b611e908a
commit
b607574501
4 files changed
+200
-10
No files matched your search
@@ -87,6 +87,12 @@ services:
|
||||
ASPNETCORE_URLS: http://+:8080
|
||||
# CORS (for external agents and API clients)
|
||||
Cors__AllowedOrigins: ${Cors__AllowedOrigins:-*}
|
||||
# Ollama (optional — daily summaries)
|
||||
Ollama__Endpoint: http://ollama:11434
|
||||
# Coturn (WebRTC relay)
|
||||
Coturn__Url: turns:coturn:3478
|
||||
# Redis (SignalR backplane, optional — scaling)
|
||||
ConnectionStrings__Redis: redis:6379
|
||||
# Error tracking
|
||||
ports:
|
||||
- "${WEB_PORT:-5000}:8080"
|
||||
@@ -153,6 +159,57 @@ services:
|
||||
logging: *default-logging
|
||||
# no networks: host networking
|
||||
|
||||
# ── Optional services (dev) ────────────────────────────────────
|
||||
|
||||
coturn:
|
||||
image: coturn/coturn:4.6
|
||||
command: >
|
||||
-n --use-auth-secret
|
||||
--static-auth-secret=${COTURN_SECRET:-ChangeMeAtLeast32BytesLongCoturnSecret!}
|
||||
--realm=${COTURN_REALM:-heimdall.local}
|
||||
--fingerprint
|
||||
--no-tlsv1
|
||||
--no-tlsv1_1
|
||||
--log-file=stdout
|
||||
network_mode: host
|
||||
restart: unless-stopped
|
||||
logging: *default-logging
|
||||
|
||||
ollama:
|
||||
image: ollama/ollama:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${OLLAMA_PORT:-11434}:11434"
|
||||
volumes:
|
||||
- ollama_data:/root/.ollama
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:11434/api/tags"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
logging: *default-logging
|
||||
networks:
|
||||
- heimdall-net
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
command: redis-server --appendonly yes
|
||||
ports:
|
||||
- "${REDIS_PORT:-6379}:6379"
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 10s
|
||||
restart: unless-stopped
|
||||
logging: *default-logging
|
||||
networks:
|
||||
- heimdall-net
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
driver: local
|
||||
@@ -164,6 +221,10 @@ volumes:
|
||||
driver: local
|
||||
ntfy_data:
|
||||
driver: local
|
||||
ollama_data:
|
||||
driver: local
|
||||
redis_data:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
heimdall-net:
|
||||
|
||||
Reference in new issue
Block a user