rustdesk-server/compose.yml

69 lines
1.8 KiB
YAML

---
version: "3.8"
services:
app:
image: rustdesk/rustdesk-server:1.1.9
command: "hbbs -r $DOMAIN:21117 -k _"
networks:
- proxy
volumes:
- rustdesk_data:/root
ports:
- target: 21115
published: 21115
mode: host
- target: 21116
published: 21116
mode: host
- target: 21116
published: 21116
mode: host
protocol: udp
- target: 21118
published: 21118
mode: host
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
## Redirect from EXTRA_DOMAINS to DOMAIN
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version=1.0.2+1.1.9"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
signal:
image: rustdesk/rustdesk-server:1.1.9
command: ["hbbr", "-k", "_"]
networks:
- proxy
ports:
- target: 21117
published: 21117
mode: host
- target: 21119
published: 21119
mode: host
volumes:
- rustdesk_data:/root
networks:
proxy:
external: true
volumes:
rustdesk_data: