mirror of https://github.com/goproxyio/goproxy
3d49ac1020 | ||
---|---|---|
.circleci | ||
build | ||
contrib | ||
pkg/proxy | ||
scripts | ||
test | ||
.gitignore | ||
Dockerfile | ||
LICENSE | ||
Makefile | ||
README.md | ||
docker-compose.yaml | ||
go.mod | ||
main.go |
README.md
GOPROXY
A global proxy for go modules. see: https://goproxy.io
Build
make
Started
./goproxy -listen=0.0.0.0:80 -cacheDir=/data
Use docker image
docker run -d -p80:8081 goproxy/goproxy
Use the -v flag to persisting the proxy module data (change cacheDir to your own dir):
docker run -d -p80:8081 -v cacheDir:/go goproxy/goproxy
Docker Compose
docker-compose up
Appendix
- set
export GOPROXY=http://localhost
to enable your goproxy. - set
export GOPROXY=
to disable it.