dns resolvers changing using environment variables

This commit is contained in:
Paramtamtam
2022-08-16 10:08:19 +04:00
parent 93902a6aef
commit 7200ecad96
5 changed files with 30 additions and 8 deletions

View File

@@ -31,10 +31,12 @@ All supported image tags [can be found here][link_docker_tags].
## Supported environment variables
| Variable name | Description | Example |
|------------------|------------------------|------------|
| `PROXY_LOGIN` | Authorization login | `username` |
| `PROXY_PASSWORD` | Authorization password | `password` |
| Variable name | Description | Example |
|------------------|-------------------------------------|------------------------|
| `PROXY_LOGIN` | Authorization login | `username` |
| `PROXY_PASSWORD` | Authorization password | `password` |
| `NAME_SERVER_1` | Primary nameserver (dns resolver) | `8.8.8.8` |
| `NAME_SERVER_2` | Secondary nameserver (dns resolver) | `2001:4860:4860::8844` |
## How can I use this?
@@ -47,7 +49,7 @@ $ docker run --rm -d \
tarampampam/3proxy:latest
```
Or with auth settings:
Or with auth & resolver settings:
```bash
$ docker run --rm -d \
@@ -55,6 +57,7 @@ $ docker run --rm -d \
-p "1080:1080/tcp" \
-e "PROXY_LOGIN=evil" \
-e "PROXY_PASSWORD=live" \
-e "NAME_SERVER_1=2001:4860:4860::8888" \
tarampampam/3proxy:latest
```