-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathcompose.yaml
More file actions
55 lines (54 loc) · 1.22 KB
/
Copy pathcompose.yaml
File metadata and controls
55 lines (54 loc) · 1.22 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
---
services:
wireguard:
image: linuxserver/wireguard:version-v1.0.20210914
cap_add:
- NET_ADMIN
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv4.conf.all.src_valid_mark=1
networks:
wgnet:
ipv4_address: 172.100.0.2
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Stockholm
ports:
- "9091:9091/tcp"
volumes:
- /lib/modules:/lib/modules
- ./wg0.conf:/config/wg_confs/wg0.conf
healthcheck:
test: ["CMD-SHELL", "wg show | grep -q handshake"]
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
restart: always
transmission:
image: linuxserver/transmission:4.1.3
network_mode: "service:wireguard"
depends_on:
wireguard:
condition: service_healthy
restart: true
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Stockholm
env_file:
- ./transmission.env
volumes:
- ./transmission-config:/config
- ./downloads:/downloads
- ./watch:/watch
restart: always
networks:
wgnet:
ipam:
config:
- subnet: 172.100.0.0/24
ip_range: 172.100.0.0/24
gateway: 172.100.0.1
attachable: true