Updated readme
This commit is contained in:
38
README.md
38
README.md
@@ -87,7 +87,7 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -d --name=pia -v ./auth.conf:/auth.conf:ro \
|
docker run -d --name=pia -v ./auth.conf:/auth.conf:ro \
|
||||||
--cap-add=NET_ADMIN --device=/dev/net/tun --network=pianet \
|
--cap-add=NET_ADMIN --device=/dev/net/tun \
|
||||||
-e REGION="CA Montreal" -e PROTOCOL=udp -e ENCRYPTION=strong \
|
-e REGION="CA Montreal" -e PROTOCOL=udp -e ENCRYPTION=strong \
|
||||||
-e USER=js89ds7 -e PASSWORD=8fd9s239G \
|
-e USER=js89ds7 -e PASSWORD=8fd9s239G \
|
||||||
qmcgaw/private-internet-access
|
qmcgaw/private-internet-access
|
||||||
@@ -148,8 +148,6 @@ For containers in the same `docker-compose.yml` as PIA, you can use `network: "s
|
|||||||
|
|
||||||
### Access ports of PIA-connected containers
|
### Access ports of PIA-connected containers
|
||||||
|
|
||||||
#### General case
|
|
||||||
|
|
||||||
1. For example, the following containers are launched connected to PIA:
|
1. For example, the following containers are launched connected to PIA:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -202,17 +200,12 @@ For containers in the same `docker-compose.yml` as PIA, you can use `network: "s
|
|||||||
|
|
||||||
For more containers, add more `--link pia:xxx` and modify *nginx.conf* accordingly
|
For more containers, add more `--link pia:xxx` and modify *nginx.conf* accordingly
|
||||||
|
|
||||||
#### Containers with PIA in one docker-compose.yml
|
The docker compose file would look like:
|
||||||
|
|
||||||
This is simpler but restrictive in terms of management as all containers must be in the same *docker-compose.yml*.
|
|
||||||
|
|
||||||
For example, the following file
|
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
pia:
|
pia:
|
||||||
build: https://github.com/qdm12/private-internet-access-docker.git
|
|
||||||
image: qmcgaw/private-internet-access
|
image: qmcgaw/private-internet-access
|
||||||
container_name: pia
|
container_name: pia
|
||||||
cap_add:
|
cap_add:
|
||||||
@@ -220,8 +213,6 @@ services:
|
|||||||
devices:
|
devices:
|
||||||
- /dev/net/tun
|
- /dev/net/tun
|
||||||
network_mode: bridge
|
network_mode: bridge
|
||||||
ports:
|
|
||||||
- 8112:8112/tcp
|
|
||||||
environment:
|
environment:
|
||||||
- USER=js89ds7
|
- USER=js89ds7
|
||||||
- PASSWORD=8fd9s239G
|
- PASSWORD=8fd9s239G
|
||||||
@@ -230,16 +221,29 @@ services:
|
|||||||
- REGION=CA Montreal
|
- REGION=CA Montreal
|
||||||
- EXTRA_SUBNETS=
|
- EXTRA_SUBNETS=
|
||||||
restart: always
|
restart: always
|
||||||
|
nginx:
|
||||||
|
image: nginx:alpine
|
||||||
|
container_name: pia_proxy
|
||||||
|
ports:
|
||||||
|
- 8001:8001/tcp
|
||||||
|
- 8002:8002/tcp
|
||||||
|
links:
|
||||||
|
- pia:deluge
|
||||||
|
- pia:hydra
|
||||||
|
volumes:
|
||||||
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
deluge:
|
deluge:
|
||||||
image: linuxserver/deluge
|
image: linuxserver/deluge
|
||||||
depends_on:
|
container_name: deluge
|
||||||
- pia
|
network_mode: "container:pia"
|
||||||
network_mode: "service:pia"
|
# add more volumes etc.
|
||||||
restart: always
|
hydra:
|
||||||
|
image: linuxserver/hydra
|
||||||
|
container_name: hydra
|
||||||
|
network_mode: "container:hydra"
|
||||||
|
# add more volumes etc.
|
||||||
```
|
```
|
||||||
|
|
||||||
will publish port 8112 as Deluge WebUI without any trouble.
|
|
||||||
|
|
||||||
## For the paranoids
|
## For the paranoids
|
||||||
|
|
||||||
- You can review the code which essential consits in the [Dockerfile](https://github.com/qdm12/private-internet-access-docker/blob/master/Dockerfile) and [entrypoint.sh](https://github.com/qdm12/private-internet-access-docker/blob/master/entrypoint.sh)
|
- You can review the code which essential consits in the [Dockerfile](https://github.com/qdm12/private-internet-access-docker/blob/master/Dockerfile) and [entrypoint.sh](https://github.com/qdm12/private-internet-access-docker/blob/master/entrypoint.sh)
|
||||||
|
|||||||
Reference in New Issue
Block a user