README.md

PLC#

Configuration#

Copy docker-compose.example.yml to docker-compose.yml and make the following changes:

  • Optional, set the TS_AUTHKEY if you are using one.

Operation#

To start a PLC server, you must build a container from the PLC repository.

  1. First, clone https://github.com/did-method-plc/did-method-plc

    git clone https://github.com/did-method-plc/did-method-plc

  2. Build the container

    docker build -f ./did-method-plc/packages/server/Dockerfile -t plcjs ./did-method-plc/

  3. Bring networking up.

    docker compose up tailscale -d

    If you are using dynamic machine authentication, you'll need to view the logs and click on the link.

    docker compose logs tailscale

  4. Generate an SSL certificate for the node. Be sure to change internal.ts.net to 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"

  5. Bring the database up.

    docker compose up db -d

  6. Bring the app and proxy up.

    docker compose up -d