Skip to content

Commit

Permalink
Merge pull request #54 from algo7/fix/proxy_connection_failure
Browse files Browse the repository at this point in the history
Fix/proxy connection failure
  • Loading branch information
algo7 committed Oct 14, 2023
2 parents d3b8c18 + 060bbc3 commit 8224353
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
9 changes: 6 additions & 3 deletions container_provisioner/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
protocol: tcp
# Set up a dedicated network
networks:
- scraper
- container_provisioner

# Service name
redis:
Expand All @@ -47,9 +47,12 @@ services:
protocol: tcp
# Set up a dedicated network
networks:
- scraper
- container_provisioner

## Config section
# Define the network type
networks:
scraper:
container_provisioner:
name: container_provisioner
driver: bridge
external: false
1 change: 1 addition & 0 deletions go.work.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
13 changes: 7 additions & 6 deletions proxy_pool/docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ services:
# Devices required to run OpenVPN
devices:
- '/dev/net/tun:/dev/net/tun'
# NOTE: These ports are only used when you are connecting to the proxy pool from outside of docker network without the container_provisioner.
ports:
# Squid proxy port
- target: 8888
Expand Down Expand Up @@ -47,8 +48,8 @@ services:
labels:
- 'TaskOwner=PROXY'
- 'vpn.region=SE'
- 'proxy.socks.port=8882'
- 'proxy.http.port=8889'
- 'proxy.socks.port=8881'
- 'proxy.http.port=8888'
# Capabilities required to run OpenVPN
cap_add:
- NET_ADMIN
Expand Down Expand Up @@ -82,8 +83,8 @@ services:
labels:
- 'TaskOwner=PROXY'
- 'vpn.region=UK'
- 'proxy.socks.port=8883'
- 'proxy.http.port=8890'
- 'proxy.socks.port=8881'
- 'proxy.http.port=8888'
# Capabilities required to run OpenVPN
cap_add:
- NET_ADMIN
Expand Down Expand Up @@ -117,8 +118,8 @@ services:
labels:
- 'TaskOwner=PROXY'
- 'vpn.region=BE'
- 'proxy.socks.port=8884'
- 'proxy.http.port=8891'
- 'proxy.socks.port=8881'
- 'proxy.http.port=8888'
# Capabilities required to run OpenVPN
cap_add:
- NET_ADMIN
Expand Down
13 changes: 7 additions & 6 deletions proxy_pool/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ services:
# Devices required to run OpenVPN
devices:
- '/dev/net/tun:/dev/net/tun'
# NOTE: These port mappings are only used when you are connecting to the proxy pool from outside of docker network without the container_provisioner (e.g. from your host machine).
ports:
# Squid proxy port
- target: 8888
Expand Down Expand Up @@ -47,8 +48,8 @@ services:
labels:
- 'TaskOwner=PROXY'
- 'vpn.region=SE'
- 'proxy.socks.port=8882'
- 'proxy.http.port=8889'
- 'proxy.socks.port=8881'
- 'proxy.http.port=8888'
# Capabilities required to run OpenVPN
cap_add:
- NET_ADMIN
Expand Down Expand Up @@ -82,8 +83,8 @@ services:
labels:
- 'TaskOwner=PROXY'
- 'vpn.region=UK'
- 'proxy.socks.port=8883'
- 'proxy.http.port=8890'
- 'proxy.socks.port=8881'
- 'proxy.http.port=8888'
# Capabilities required to run OpenVPN
cap_add:
- NET_ADMIN
Expand Down Expand Up @@ -117,8 +118,8 @@ services:
labels:
- 'TaskOwner=PROXY'
- 'vpn.region=BE'
- 'proxy.socks.port=8884'
- 'proxy.http.port=8891'
- 'proxy.socks.port=8881'
- 'proxy.http.port=8888'
# Capabilities required to run OpenVPN
cap_add:
- NET_ADMIN
Expand Down

0 comments on commit 8224353

Please sign in to comment.