-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcompose.yml
More file actions
61 lines (59 loc) · 1.67 KB
/
Copy pathcompose.yml
File metadata and controls
61 lines (59 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
# ---------------------
# RustDesk Server Pro
# ---------------------
hbbr:
container_name: hbbr
user: "${RUSTDESK_UID}:${RUSTDESK_GID}"
image: rustdesk/rustdesk-server-pro:latest
command: hbbr
network_mode: "host" # Must be "host" due to licence checks
volumes:
- ${FILE_LOCATION_RUSTDESK}/data:/root
restart: unless-stopped
security_opt:
- no-new-privileges:true
cap_drop:
- NET_RAW
hbbs:
container_name: hbbs
user: "${RUSTDESK_UID}:${RUSTDESK_GID}"
image: rustdesk/rustdesk-server-pro:latest
command: hbbs
network_mode: "host" # Must be "host" due to licence checks
volumes:
- ${FILE_LOCATION_RUSTDESK}/data:/root
depends_on:
- hbbr
restart: unless-stopped
security_opt:
- no-new-privileges:true
cap_drop:
- NET_RAW
# ---------------------
# Caddy (reverse proxy)
# ---------------------
caddy:
container_name: caddy
user: "${CADDY_UID}:${CADDY_GID}"
image: caddy:latest
network_mode: "host" # so it can reach 127.0.0.1:21114/18/19
restart: unless-stopped
environment:
- XDG_DATA_HOME=/data # ACME certs/state
- XDG_CONFIG_HOME=/config
volumes:
- ${FILE_LOCATION_CADDY}/Caddyfile:/etc/caddy/Caddyfile:ro
- ${FILE_LOCATION_CADDY}/data:/data
- ${FILE_LOCATION_CADDY}/config:/config
depends_on:
- hbbr
- hbbs
security_opt:
- no-new-privileges:true
cap_add:
- NET_BIND_SERVICE # bind :80/:443/tcp and :443/udp
read_only: true # immutable root FS
tmpfs:
- /tmp
- /run