PLC#
Configuration#
Copy docker-compose.example.yml to docker-compose.yml and make the following changes:
- Optional, set the
TS_AUTHKEYif you are using one.
Operation#
To start a PLC server, you must build a container from the PLC repository.
-
First, clone https://github.com/did-method-plc/did-method-plc
git clone https://github.com/did-method-plc/did-method-plc -
Build the container
docker build -f ./did-method-plc/packages/server/Dockerfile -t plcjs ./did-method-plc/ -
Bring networking up.
docker compose up tailscale -dIf you are using dynamic machine authentication, you'll need to view the logs and click on the link.
docker compose logs tailscale -
Generate an SSL certificate for the node. Be sure to change
internal.ts.netto whatever your Tailnet name is (i.e.sneaky-fox.ts.net)docker compose exec tailscale /bin/sh -c "tailscale cert --cert-file /mnt/tls/cert.pem --key-file /mnt/tls/cert.key plc.internal.ts.net" -
Bring the database up.
docker compose up db -d -
Bring the app and proxy up.
docker compose up -d