From c0caa93228585cfbcbcadf53ea575fc669e4f577 Mon Sep 17 00:00:00 2001 From: Johanna Larsson Date: Sun, 23 Aug 2026 09:58:37 +0100 Subject: [PATCH] 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. --- config.dev.toml | 1 + docker-compose.yaml | 2 ++ traefik.dev.yaml | 6 ++++++ 3 files changed, 9 insertions(+) diff --git a/config.dev.toml b/config.dev.toml index 9f42492..4d61216 100644 --- a/config.dev.toml +++ b/config.dev.toml @@ -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" diff --git a/docker-compose.yaml b/docker-compose.yaml index 16cf477..fd4ea1e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -96,6 +96,8 @@ services: depends_on: db: condition: service_healthy + ports: + - "2582:2582" mailpit: profiles: [dev] diff --git a/traefik.dev.yaml b/traefik.dev.yaml index 09dbce7..d0c721a 100644 --- a/traefik.dev.yaml +++ b/traefik.dev.yaml @@ -18,6 +18,12 @@ http: service: frontend priority: 1 tls: {} + handles: + rule: 'HostRegexp(`^.+\.pds\.test$`)' + entryPoints: + - websecure + service: backend + tls: {} services: backend: -- 2.51.2