lantongxue / rustdesk-api-server-pro

🚀This is an open source Api server based on the open source RustDesk client, the implementation of the client all Api interfaces, and provides a Web-UI for the management of data.
https://sephp.com/open-source/rustdesk-api-server-pro/
GNU Affero General Public License v3.0
57 stars 10 forks source link

Docker Compose #13

Closed hirenshah closed 3 weeks ago

hirenshah commented 1 month ago

Any chance you can provide a Docker Compose example please?

lantongxue commented 4 weeks ago

See the docker deployment method

innovara commented 4 weeks ago

Without environment variables for admin user and password:

services:
  rustdesk-api-server-pro:
    container_name: rustdesk-api-server-pro
    image: ghcr.io/lantongxue/rustdesk-api-server-pro:latest
    volumes:
      - ./server.yaml:/app/server.yaml
    network_mode: host
    restart: unless-stopped

With environment variables:

services:
  rustdesk-api-server-pro:
    container_name: rustdesk-api-server-pro
    image: ghcr.io/lantongxue/rustdesk-api-server-pro:latest
    environment:
      - "ADMIN_USER=youruser"
      - "ADMIN_PASS=yourpassword"
    volumes:
      - ./server.yaml:/app/server.yaml
    network_mode: host
    restart: unless-stopped

Please note that in this example server.yaml and the compose file are in the same directory. You'd need to adjust the first part of the volume if that's not the case.

lantongxue commented 3 weeks ago

thank you