chore: add plc directory for local dev

Prevents us from polluting the real PLC directory.

Signed-off-by: Trezy <tre@trezy.com>
This commit is contained in:
Trezy
2026-05-19 19:46:58 +03:00
committed by Tangled
parent 8bd556f65b
commit 0afcb2ee28
2 changed files with 17 additions and 1 deletions
+16 -1
View File
@@ -14,7 +14,8 @@ services:
- blob_data:/var/lib/tranquil-pds/blobs
- store_data:/var/lib/tranquil-pds/store
depends_on:
- db
db:
condition: service_healthy
frontend:
profiles: [prod]
@@ -45,6 +46,20 @@ services:
retries: 10
start_period: 5s
plc:
profiles: [dev]
build:
context: https://github.com/did-method-plc/did-method-plc.git
dockerfile: packages/server/Dockerfile
environment:
DB_CREDS_JSON: '{"username":"postgres","password":"postgres","host":"db","port":"5432","database":"plc"}'
ENABLE_MIGRATIONS: "true"
DB_MIGRATE_CREDS_JSON: '{"username":"postgres","password":"postgres","host":"db","port":"5432","database":"plc"}'
PORT: "2582"
depends_on:
db:
condition: service_healthy
traefik:
profiles: [dev]
image: traefik:v3.4
+1
View File
@@ -0,0 +1 @@
SELECT 'CREATE DATABASE plc' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'plc')\gexec