diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..dd0137b --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +GOST_USERNAME=gost +GOST_PASSWORD=gost diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..fa9c8fe --- /dev/null +++ b/Caddyfile @@ -0,0 +1,3 @@ +proxy1.lanhuip.com { + reverse_proxy localhost:9700 +} diff --git a/docker-compose.yaml b/docker-compose.yaml index e512306..edb7e5e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,8 +2,15 @@ name: proxy-gost services: gost: - image: gogost/gost + image: gogost/gost:latest network_mode: host command: > - -api test:test@:9700 + -api $GOST_USERNAME:$GOST_PASSWORD@:9700 + restart: unless-stopped + + caddy: + image: caddy:latest + network_mode: host + volumes: + - ./Caddyfile:/etc/caddy/Caddyfile restart: unless-stopped