Skip to content

Commit

Permalink
Update README.md (#2775)
Browse files Browse the repository at this point in the history
added support for docker compose v2.0 which ships with ubuntu 22.04 lts
  • Loading branch information
kevincw01 authored Dec 22, 2023
1 parent 2f4bcce commit 2cf661c
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.
Expand Down

0 comments on commit 2cf661c

Please sign in to comment.