Skip to content

[Guide] How to deploy worker node #35

@van-geaux

Description

@van-geaux

It took me some time to inspect the Dockerfile and entrypoint to understand how they were built.
Here’s how to run the image as a worker:

  1. Copy config.json from the master server to the worker server.

  2. (Optional) If the master and worker are not on the same network, add an "ip" entry to config.json with the worker’s IP address.

    • If using a VPN tunnel, set it to the VPN tunnel IP (e.g., 10.8.0.2).

    Example config.json on the worker:

    {
        "ip": "10.8.0.2",
        "base_app_url": "http://localhost:3012",
        "email_from": "admin@localhost",
        "smtp_hostname": "localhost",
        "secret_key": "the-secret-key-from-master-config",
        ...
    }
    
  3. Add the following environment variables in your docker-compose.yml or docker run command:

      - IS_WORKER=true
      - HOSTNAME=synology # change to your desired worker name
  1. Run the worker then add its ip (i.e. 10.8.0.2) in master's GUI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions