Initial import?

This commit is contained in:
3wc 2023-05-02 10:44:18 -04:00
parent 7145a4de1d
commit 2f69ff8ae1
2 changed files with 50 additions and 15 deletions

View File

@ -6,7 +6,7 @@ steps:
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
settings:
host: swarm-test.autonomic.zone
stack: {{ .Name }}
stack: rustdesk_server
generate_secrets: true
purge: true
deploy_key:
@ -14,8 +14,8 @@ steps:
networks:
- proxy
environment:
DOMAIN: {{ .Name }}.swarm-test.autonomic.zone
STACK_NAME: {{ .Name }}
DOMAIN: rustdesk.swarm-test.autonomic.zone
STACK_NAME: rustdesk_server
LETS_ENCRYPT_ENV: production
trigger:
branch:

View File

@ -3,30 +3,65 @@ version: "3.8"
services:
app:
image: nginx:1.20.0
image: rustdesk/rustdesk-server:1.1.6
command: "hbbs -r $DOMAIN:21117"
networks:
- proxy
volumes:
- rustdesk_data:/root
ports:
- target: 21115
published: 21115
mode: host
- target: 21116
published: 21116
mode: host
- target: 21116/udp
published: 21116/udp
mode: host
- target: 21117
published: 21117
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}"
# - "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="
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
signal:
image: rustdesk/rustdesk-server:1.1.6
command: hbbr
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: