mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-08-24 10:16:06 +00:00
Dev compose improvements
1. Set the max connections to 20, I frequently see db-1 | 2026-08-23 08:57:02.784 UTC [12641] FATAL: sorry, too many clients already 2. Add a wildcard route in Traefik to serve DID documents locally. 3. Expose the PLC port locally so I can point an app at `http://localhost:2582` and be able to do full OAuth flows.
This commit is contained in:
@@ -10,6 +10,7 @@ dir = "/app/frontend/public"
|
||||
|
||||
[database]
|
||||
url = "postgres://postgres:postgres@db:5432/pds"
|
||||
max_connections = 20
|
||||
|
||||
[storage]
|
||||
path = "/var/lib/tranquil-pds/blobs"
|
||||
|
||||
@@ -96,6 +96,8 @@ services:
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "2582:2582"
|
||||
|
||||
mailpit:
|
||||
profiles: [dev]
|
||||
|
||||
@@ -18,6 +18,12 @@ http:
|
||||
service: frontend
|
||||
priority: 1
|
||||
tls: {}
|
||||
handles:
|
||||
rule: 'HostRegexp(`^.+\.pds\.test$`)'
|
||||
entryPoints:
|
||||
- websecure
|
||||
service: backend
|
||||
tls: {}
|
||||
|
||||
services:
|
||||
backend:
|
||||
|
||||
Reference in New Issue
Block a user