37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
version: '3.3'
|
|
|
|
services:
|
|
transmission-openvpn:
|
|
image: haugene/transmission-openvpn
|
|
container_name: openvpn-transmission
|
|
environment:
|
|
- OPENVPN_PROVIDER=MULLVAD
|
|
- OPENVPN_CONFIG=ca_tor
|
|
#- LOCAL_NETWORK=192.168.0.0/16
|
|
env_file:
|
|
- .env
|
|
sysctls:
|
|
- "net.ipv6.conf.all.disable_ipv6=0"
|
|
cap_add:
|
|
- NET_ADMIN
|
|
volumes:
|
|
- '/home/meftimes/docker/openvpn-transmission/data:/data'
|
|
- '/home/meftimes/docker/openvpn-transmission/config:/config'
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.openvpn-transmission.entrypoints=websecure"
|
|
- "traefik.http.routers.openvpn-transmission.rule=Host(`transmission2.meftimes.com`)"
|
|
- "traefik.http.routers.openvpn-transmission.tls.certresolver=letsencrypt"
|
|
- "traefik.http.routers.openvpn-transmission.middlewares=authelia@docker"
|
|
- "traefik.http.services.openvpn-transmission.loadbalancer.server.port=9091"
|
|
networks:
|
|
- proxy
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: 10m
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|