rustdesk-server/compose.yml

69 lines
1.8 KiB
YAML
Raw Permalink Normal View History

2023-05-02 14:17:21 +00:00
---
version: "3.8"
services:
app:
2024-01-17 21:09:09 +00:00
image: rustdesk/rustdesk-server:1.1.9
2023-05-16 14:46:32 +00:00
command: "hbbs -r $DOMAIN:21117 -k _"
2023-05-02 14:17:21 +00:00
networks:
- proxy
2023-05-02 14:44:18 +00:00
volumes:
- rustdesk_data:/root
ports:
- target: 21115
published: 21115
mode: host
- target: 21116
published: 21116
mode: host
- target: 21116
published: 21116
2023-05-02 14:44:18 +00:00
mode: host
protocol: udp
- target: 21118
published: 21118
2023-05-02 14:44:18 +00:00
mode: host
2023-05-02 14:17:21 +00:00
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}"
2023-05-02 14:17:21 +00:00
## 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}"
2024-01-17 21:09:09 +00:00
- "coop-cloud.${STACK_NAME}.version=1.0.2+1.1.9"
2023-05-02 14:44:18 +00:00
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
signal:
2024-01-17 21:09:09 +00:00
image: rustdesk/rustdesk-server:1.1.9
2023-05-16 14:46:32 +00:00
command: ["hbbr", "-k", "_"]
2023-05-02 14:44:18 +00:00
networks:
- proxy
ports:
- target: 21117
published: 21117
mode: host
- target: 21119
published: 21119
mode: host
volumes:
- rustdesk_data:/root
2023-05-02 14:17:21 +00:00
networks:
proxy:
external: true
2023-05-02 14:44:18 +00:00
volumes:
rustdesk_data: