1.6 KiB
Getting started with go-proxy docker container
Setup
-
Install
wgetif not already -
Run setup script
bash <(wget -qO- https://6uo.me/go-proxy-setup-docker)What it does:
- Create required directories
- Setup
config.ymlandcompose.yml
-
Verify folder structure and then
cd go-proxygo-proxy ├── certs ├── compose.yml └── config ├── config.yml └── providers.yml -
Enable HTTPs (optional)
-
To use autocert feature
- completing
autocertsection inconfig/config.yml - mount
certs/to/app/certsto store obtained certs
- completing
-
To use existing certificate
mount your wildcard (
*.y.z) SSL cert- cert / chain / fullchain ->
/app/certs/cert.crt - private key ->
/app/certs/priv.key
- cert / chain / fullchain ->
-
-
Modify
compose.ymlfit your needsAdd networks to make sure it is in the same network with other containers, or make sure
proxy.<alias>.hostis reachable -
Run
docker compose up -dto start the container -
Start editing config files in
http://<ip>:8080
Troubleshooting
-
Firewall issues
If you are using
ufwwith vpn that drop all inbound traffic except vpn, run below:sudo ufw allow from 172.16.0.0/16 to 100.64.0.0/10Explaination:
Docker network is usually
172.16.0.0/16Tailscale is used as an example,
100.64.0.0/10will be the CIDRYou can also list CIDRs of all docker bridge networks by:
docker network inspect $(docker network ls | awk '$3 == "bridge" { print $1}') | jq -r '.[] | .Name + " " + .IPAM.Config[0].Subnet' -