Skip to content

Commit

Permalink
update proxy pool docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
algo7 committed Oct 14, 2023
1 parent 3384ca8 commit b575acf
Showing 1 changed file with 112 additions and 67 deletions.
179 changes: 112 additions & 67 deletions proxy_pool/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version: '3.9'
services:
vpnch:
vpnch5:
image: ghcr.io/algo7/tripadvisor-review-scraper/vpn_worker:latest
labels:
# This label is used by the container_provisioner to identify the containers that are part of the proxy pool.
- 'TaskOwner=PROXY'
# This label is used by the container_provisioner to show the region of the proxy on the UI.
- 'vpn.region=CH'
- 'vpn.region=CH5'
# This label is used by the container_provisioner to get the socks port of the proxy.
- 'proxy.socks.port=8881'
# This label is used by the container_provisioner to get the http port of the proxy.
Expand Down Expand Up @@ -38,147 +38,192 @@ services:
volumes:
# OpenVPN credentials and config (config.vpn and pass.txt)
- type: bind
source: ./VPN/CH
source: ./VPN/CH5
target: /VPN
bind:
create_host_path: true

vpnse:
vpnch14:
image: ghcr.io/algo7/tripadvisor-review-scraper/vpn_worker:latest
labels:
# This label is used by the container_provisioner to identify the containers that are part of the proxy pool.
- 'TaskOwner=PROXY'
- 'vpn.region=SE'
# This label is used by the container_provisioner to show the region of the proxy on the UI.
- 'vpn.region=CH14'
# This label is used by the container_provisioner to get the socks port of the proxy.
- 'proxy.socks.port=8881'
# This label is used by the container_provisioner to get the http port of the proxy.
# Currently, the container_provisioner only supports socks5 proxies.
- 'proxy.http.port=8888'
# Capabilities required to run OpenVPN
cap_add:
- NET_ADMIN
# Devices required to run OpenVPN
devices:
- '/dev/net/tun:/dev/net/tun'
ports:
# Squid proxy port
- target: 8888
published: 8889
protocol: tcp
# Dante proxy port
- target: 8881
published: 8882
protocol: tcp
- target: 8881
published: 8882
protocol: udp

# WARNING: Do not Change the name of this network. It is used by the scraper to connect to the proxies.
# At this moment, it is hardcoded in the container_provisioner when creating the containers.
networks:
- scraper_vpn
volumes:
# OpenVPN credentials
# OpenVPN credentials and config (config.vpn and pass.txt)
- type: bind
source: ./VPN/SE
source: ./VPN/CH76
target: /VPN
bind:
create_host_path: true

vpnuk:
vpnch46:
image: ghcr.io/algo7/tripadvisor-review-scraper/vpn_worker:latest
labels:
# This label is used by the container_provisioner to identify the containers that are part of the proxy pool.
- 'TaskOwner=PROXY'
- 'vpn.region=UK'
# This label is used by the container_provisioner to show the region of the proxy on the UI.
- 'vpn.region=CH46'
# This label is used by the container_provisioner to get the socks port of the proxy.
- 'proxy.socks.port=8881'
# This label is used by the container_provisioner to get the http port of the proxy.
# Currently, the container_provisioner only supports socks5 proxies.
- 'proxy.http.port=8888'
# Capabilities required to run OpenVPN
cap_add:
- NET_ADMIN
# Devices required to run OpenVPN
devices:
- '/dev/net/tun:/dev/net/tun'
ports:
# Squid proxy port
- target: 8888
published: 8890
protocol: tcp
# Dante proxy port
- target: 8881
published: 8883
protocol: tcp
- target: 8881
published: 8883
protocol: udp

# WARNING: Do not Change the name of this network. It is used by the scraper to connect to the proxies.
# At this moment, it is hardcoded in the container_provisioner when creating the containers.
networks:
- scraper_vpn
volumes:
# OpenVPN credentials
# OpenVPN credentials and config (config.vpn and pass.txt)
- type: bind
source: ./VPN/UK
source: ./VPN/CH76
target: /VPN
bind:
create_host_path: true

vpnbe:
vpnch58:
image: ghcr.io/algo7/tripadvisor-review-scraper/vpn_worker:latest
labels:
# This label is used by the container_provisioner to identify the containers that are part of the proxy pool.
- 'TaskOwner=PROXY'
- 'vpn.region=BE'
# This label is used by the container_provisioner to show the region of the proxy on the UI.
- 'vpn.region=CH58'
# This label is used by the container_provisioner to get the socks port of the proxy.
- 'proxy.socks.port=8881'
# This label is used by the container_provisioner to get the http port of the proxy.
# Currently, the container_provisioner only supports socks5 proxies.
- 'proxy.http.port=8888'
# Capabilities required to run OpenVPN
cap_add:
- NET_ADMIN
# Devices required to run OpenVPN
devices:
- '/dev/net/tun:/dev/net/tun'
ports:
# Squid proxy port
- target: 8888
published: 8891
protocol: tcp
# Dante proxy port
- target: 8881
published: 8884
protocol: tcp
- target: 8881
published: 8884
protocol: udp

# WARNING: Do not Change the name of this network. It is used by the scraper to connect to the proxies.
# At this moment, it is hardcoded in the container_provisioner when creating the containers.
networks:
- scraper_vpn
volumes:
# OpenVPN credentials
# OpenVPN credentials and config (config.vpn and pass.txt)
- type: bind
source: ./VPN/BE
source: ./VPN/CH76
target: /VPN
bind:
create_host_path: true

vpnde:
vpnch66:
image: ghcr.io/algo7/tripadvisor-review-scraper/vpn_worker:latest
labels:
# This label is used by the container_provisioner to identify the containers that are part of the proxy pool.
- 'TaskOwner=PROXY'
- 'vpn.region=DE'
# This label is used by the container_provisioner to show the region of the proxy on the UI.
- 'vpn.region=CH66'
# This label is used by the container_provisioner to get the socks port of the proxy.
- 'proxy.socks.port=8881'
# This label is used by the container_provisioner to get the http port of the proxy.
# Currently, the container_provisioner only supports socks5 proxies.
- 'proxy.http.port=8888'
# Capabilities required to run OpenVPN
cap_add:
- NET_ADMIN
# Devices required to run OpenVPN
devices:
- '/dev/net/tun:/dev/net/tun'
ports:
# Squid proxy port
- target: 8888
published: 8892
protocol: tcp
# Dante proxy port
- target: 8881
published: 8885
protocol: tcp
- target: 8881
published: 8885
protocol: udp

# WARNING: Do not Change the name of this network. It is used by the scraper to connect to the proxies.
# At this moment, it is hardcoded in the container_provisioner when creating the containers.
networks:
- scraper_vpn
volumes:
# OpenVPN credentials
# OpenVPN credentials and config (config.vpn and pass.txt)
- type: bind
source: ./VPN/CH76
target: /VPN
bind:
create_host_path: true

vpnch70:
image: ghcr.io/algo7/tripadvisor-review-scraper/vpn_worker:latest
labels:
# This label is used by the container_provisioner to identify the containers that are part of the proxy pool.
- 'TaskOwner=PROXY'
# This label is used by the container_provisioner to show the region of the proxy on the UI.
- 'vpn.region=CH70'
# This label is used by the container_provisioner to get the socks port of the proxy.
- 'proxy.socks.port=8881'
# This label is used by the container_provisioner to get the http port of the proxy.
# Currently, the container_provisioner only supports socks5 proxies.
- 'proxy.http.port=8888'
# Capabilities required to run OpenVPN
cap_add:
- NET_ADMIN
# Devices required to run OpenVPN
devices:
- '/dev/net/tun:/dev/net/tun'
# WARNING: Do not Change the name of this network. It is used by the scraper to connect to the proxies.
# At this moment, it is hardcoded in the container_provisioner when creating the containers.
networks:
- scraper_vpn
volumes:
# OpenVPN credentials and config (config.vpn and pass.txt)
- type: bind
source: ./VPN/CH76
target: /VPN
bind:
create_host_path: true

vpnch76:
image: ghcr.io/algo7/tripadvisor-review-scraper/vpn_worker:latest
labels:
# This label is used by the container_provisioner to identify the containers that are part of the proxy pool.
- 'TaskOwner=PROXY'
# This label is used by the container_provisioner to show the region of the proxy on the UI.
- 'vpn.region=CH76'
# This label is used by the container_provisioner to get the socks port of the proxy.
- 'proxy.socks.port=8881'
# This label is used by the container_provisioner to get the http port of the proxy.
# Currently, the container_provisioner only supports socks5 proxies.
- 'proxy.http.port=8888'
# Capabilities required to run OpenVPN
cap_add:
- NET_ADMIN
# Devices required to run OpenVPN
devices:
- '/dev/net/tun:/dev/net/tun'

# WARNING: Do not Change the name of this network. It is used by the scraper to connect to the proxies.
# At this moment, it is hardcoded in the container_provisioner when creating the containers.
networks:
- scraper_vpn
volumes:
# OpenVPN credentials and config (config.vpn and pass.txt)
- type: bind
source: ./VPN/DE
source: ./VPN/CH76
target: /VPN
bind:
create_host_path: true
Expand Down

0 comments on commit b575acf

Please sign in to comment.