version: "3.8" services: rustdesk-api-server: container_name: rustdesk-api-server build: context: . environment: - HOST=0.0.0.0 - TZ=Asia/Shanghai - CSRF_TRUSTED_ORIGINS=http://yourdomain.com:21114 - AUTH_LDAP_SERVER_URI=ldap://127.0.0.1:3890 - AUTH_LDAP_BIND_DN=cn=admin,ou=people,dc=example,dc=com - AUTH_LDAP_BIND_PASSWORD=changeme - AUTH_LDAP_USER_SEARCH_BASE=ou=people,dc=example,dc=com - AUTH_LDAP_USER_SEARCH_FILTER=(uid=%(user)s) - AUTH_LDAP_GROUP_SEARCH_BASE=ou=groups,dc=example,dc=com volumes: - /yourpath/db:/rustdesk-api-server/db - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro network_mode: bridge ports: - "21114:21114" restart: unless-stopped