Update README with information about usage with docker-compose
This commit is contained in:
parent
1bb2a1217b
commit
2fcdb047db
1 changed files with 21 additions and 0 deletions
21
README.md
21
README.md
|
@ -54,6 +54,27 @@ In daemon mode you can view the stderr log with `docker logs`:
|
||||||
|
|
||||||
docker logs `docker ps|grep "wazum/openconnect-proxy"|awk -F' ' '{print $1}'`
|
docker logs `docker ps|grep "wazum/openconnect-proxy"|awk -F' ' '{print $1}'`
|
||||||
|
|
||||||
|
# Use container with docker-compose
|
||||||
|
|
||||||
|
```
|
||||||
|
vpn:
|
||||||
|
container_name: openconnect_vpn
|
||||||
|
image: wazum/openconnect-proxy:latest
|
||||||
|
privileged: true
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
ports:
|
||||||
|
- 8888:8888
|
||||||
|
- 8889:8889
|
||||||
|
networks:
|
||||||
|
- mynetwork
|
||||||
|
```
|
||||||
|
|
||||||
|
Set the environment variables for _openconnect_ in the `.env` file again (or specify another file) and
|
||||||
|
map the configured ports in the container to your local ports if you want to access the VPN
|
||||||
|
on the host too when running your containers. Otherwise only the docker containers in the same
|
||||||
|
network have access to the proxy ports.
|
||||||
|
|
||||||
# Configure proxy
|
# Configure proxy
|
||||||
|
|
||||||
The container is connected via _openconnect_ and now you can configure your browser
|
The container is connected via _openconnect_ and now you can configure your browser
|
||||||
|
|
Loading…
Add table
Reference in a new issue