diff --git a/README.md b/README.md index 5a4b6b1edf..60e8337d36 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ $ docker run --cap-add=NET_ADMIN -d \ haugene/transmission-openvpn ``` -### Docker Compose +### Docker version 3.x Compose ``` version: '3.3' services: @@ -70,6 +70,32 @@ services: image: haugene/transmission-openvpn ``` +### Docker version 2.x Compose +``` +version: "2.0" +services: + transmission-openvpn: + container_name: transmission + cap_add: + - NET_ADMIN + volumes: + - '/your/storage/path/:/data' + - '/your/config/path/:/config' + environment: + - OPENVPN_PROVIDER=PIA + - OPENVPN_CONFIG=france + - OPENVPN_USERNAME=user + - OPENVPN_PASSWORD=pass + - LOCAL_NETWORK=192.168.0.0/16 + logging: + driver: "json-file" + options: + max-size: 10m + ports: + - 9091:9091 + image: haugene/transmission-openvpn +``` + ## Known issues If you've been running a stable setup that has recently started to fail, please check your logs.