Skip to content

Commit

Permalink
update vpn docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
algo7 committed Oct 8, 2023
1 parent 3d954a4 commit 6f56768
Showing 1 changed file with 88 additions and 8 deletions.
96 changes: 88 additions & 8 deletions proxy_pool/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,27 @@ version: '3.9'
services:
scraper_vpn_ch2:
image: ghcr.io/algo7/tripadvisor-review-scraper/vpn_worker:latest
container_name: vpn
deploy:
# Number of replicas to create
replicas: 1
# The restart policy
restart_policy:
condition: on-failure
# Max. number of restart
max_attempts: 3
# How the service should be updated => for rolling updates
update_config:
# How many containers to update at a time (0 = all at the same time)
parallelism: 0
# Delay between updating each container
delay: 0s
# Placement options
placement:
# User defined constraints
constraints:
# Only run on worker nodes
- 'node.role!=manager'
- 'node.labels.service==scraper_vpns'
cap_add:
- NET_ADMIN
devices:
Expand All @@ -13,7 +33,7 @@ services:
uid: '0'
gid: '0'
mode: 0444
- source: vpn_config_ch2_.v1
- source: vpn_config_ch2.v1
target: config.ovpn
uid: '0'
gid: '0'
Expand All @@ -33,7 +53,27 @@ services:

scraper_vpn_be2:
image: ghcr.io/algo7/tripadvisor-review-scraper/vpn_worker:latest
container_name: vpn
deploy:
# Number of replicas to create
replicas: 1
# The restart policy
restart_policy:
condition: on-failure
# Max. number of restart
max_attempts: 3
# How the service should be updated => for rolling updates
update_config:
# How many containers to update at a time (0 = all at the same time)
parallelism: 0
# Delay between updating each container
delay: 0s
# Placement options
placement:
# User defined constraints
constraints:
# Only run on worker nodes
- 'node.role!=manager'
- 'node.labels.service==scraper_vpns'
cap_add:
- NET_ADMIN
devices:
Expand All @@ -44,7 +84,7 @@ services:
uid: '0'
gid: '0'
mode: 0444
- source: vpn_config_be2_.v1
- source: vpn_config_be2.v1
target: config.ovpn
uid: '0'
gid: '0'
Expand All @@ -64,7 +104,27 @@ services:

scraper_vpn_se1:
image: ghcr.io/algo7/tripadvisor-review-scraper/vpn_worker:latest
container_name: vpn
deploy:
# Number of replicas to create
replicas: 1
# The restart policy
restart_policy:
condition: on-failure
# Max. number of restart
max_attempts: 3
# How the service should be updated => for rolling updates
update_config:
# How many containers to update at a time (0 = all at the same time)
parallelism: 0
# Delay between updating each container
delay: 0s
# Placement options
placement:
# User defined constraints
constraints:
# Only run on worker nodes
- 'node.role!=manager'
- 'node.labels.service==scraper_vpns'
cap_add:
- NET_ADMIN
devices:
Expand All @@ -75,7 +135,7 @@ services:
uid: '0'
gid: '0'
mode: 0444
- source: vpn_config_se1_.v1
- source: vpn_config_se1.v1
target: config.ovpn
uid: '0'
gid: '0'
Expand All @@ -95,7 +155,27 @@ services:

scraper_vpn_uk13:
image: ghcr.io/algo7/tripadvisor-review-scraper/vpn_worker:latest
container_name: vpn
deploy:
# Number of replicas to create
replicas: 1
# The restart policy
restart_policy:
condition: on-failure
# Max. number of restart
max_attempts: 3
# How the service should be updated => for rolling updates
update_config:
# How many containers to update at a time (0 = all at the same time)
parallelism: 0
# Delay between updating each container
delay: 0s
# Placement options
placement:
# User defined constraints
constraints:
# Only run on worker nodes
- 'node.role!=manager'
- 'node.labels.service==scraper_vpns'
cap_add:
- NET_ADMIN
devices:
Expand All @@ -106,7 +186,7 @@ services:
uid: '0'
gid: '0'
mode: 0444
- source: vpn_config_uk13_.v1
- source: vpn_config_uk13.v1
target: config.ovpn
uid: '0'
gid: '0'
Expand Down

0 comments on commit 6f56768

Please sign in to comment.