mirror of
https://github.com/ghndrx/docker-compose.git
synced 2026-02-10 06:45:14 +00:00
+wireguard and +updates to deluge
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
---
|
||||
version: "2.1"
|
||||
version: "3"
|
||||
services:
|
||||
deluge:
|
||||
image: lscr.io/linuxserver/deluge:latest
|
||||
@@ -11,11 +10,12 @@ services:
|
||||
- DELUGE_LOGLEVEL=error #optional
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.deluge.rule=Host(`${DOMAINNAME}`)"
|
||||
- "traefik.http.routers.deluge.rule=Host(`deluge.hndrx.co`)"
|
||||
- "traefik.http.routers.deluge.entrypoints=websecure"
|
||||
- "traefik.http.routers.deluge.tls=true"
|
||||
- "traefik.http.routers.deluge.tls.certresolver=myresolver"
|
||||
- "traefik.http.routers.deluge.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.deluge.loadbalancer.server.port=8112"
|
||||
|
||||
volumes:
|
||||
- /opt/deluge/config:/config
|
||||
- /opt/deluge/downloads:/downloads
|
||||
@@ -24,3 +24,12 @@ services:
|
||||
- 6881:6881
|
||||
- 6881:6881/udp
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
- traefik # Use external network named "traefik"
|
||||
|
||||
|
||||
#This specifies external network traefik - ```docker network create traefik``` is required (managed outside of docker-compose)
|
||||
networks:
|
||||
traefik:
|
||||
external: true # Use external network named "traefik"
|
||||
27
wireguard/docker-compose.yml
Normal file
27
wireguard/docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
wireguard:
|
||||
image: linuxserver/wireguard
|
||||
container_name: wireguard
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_MODULE
|
||||
environment:
|
||||
- PUID=${PUID}
|
||||
- PGID=${PGID}
|
||||
- TZ=${TZ}
|
||||
- SERVERURL=${SERVERURL}
|
||||
- SERVERPORT=${SERVERPORT}
|
||||
- PEERS=${PEERS}
|
||||
- INTERNAL_SUBNET=${INTERNAL_SUBNET}
|
||||
- ALLOWEDIPS=${ALLOWEDIPS}
|
||||
- DNS=${DNS}
|
||||
volumes:
|
||||
- ${CONFIG_DIR}:/config
|
||||
- /lib/modules:/lib/modules
|
||||
ports:
|
||||
- ${SERVERPORT}:${SERVERPORT}/udp
|
||||
sysctls:
|
||||
- net.ipv4.conf.all.src_valid_mark=1
|
||||
restart: unless-stopped
|
||||
9
wireguard/docker-env.env.example
Normal file
9
wireguard/docker-env.env.example
Normal file
@@ -0,0 +1,9 @@
|
||||
PUID=1000
|
||||
GUID=1000
|
||||
TZ=Los_Angeles
|
||||
SERVERURL=yoururl.com
|
||||
SERVERPORT=
|
||||
PEERS=
|
||||
INTERNAL_SUBNET=
|
||||
ALLOWEDIPS=
|
||||
DNS=
|
||||
Reference in New Issue
Block a user