mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-08-02 07:26:05 +00:00
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:
+16
-1
@@ -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
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
SELECT 'CREATE DATABASE plc' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'plc')\gexec
|
||||
Reference in New Issue
Block a user