mirror of
https://github.com/vimagick/dockerfiles.git
synced 2026-01-03 11:34:57 +01:00
add docker-stack.yml for polipo
This commit is contained in:
@@ -9,14 +9,16 @@ group.
|
||||
## docker-compose.yml
|
||||
|
||||
```yaml
|
||||
polipo:
|
||||
image: vimagick/polipo
|
||||
command:
|
||||
authCredentials=username:password
|
||||
socksParentProxy=1.2.3.4:9050
|
||||
ports:
|
||||
- "8123:8123"
|
||||
restart: always
|
||||
version: "3.8"
|
||||
services:
|
||||
polipo:
|
||||
image: vimagick/polipo
|
||||
command:
|
||||
authCredentials=username:password
|
||||
socksParentProxy=1.2.3.4:9050
|
||||
ports:
|
||||
- "8123:8123"
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
## server
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
polipo:
|
||||
image: vimagick/polipo
|
||||
command:
|
||||
authCredentials=username:password
|
||||
socksParentProxy=1.2.3.4:9050
|
||||
ports:
|
||||
- "8123:8123"
|
||||
restart: always
|
||||
version: "3.8"
|
||||
services:
|
||||
polipo:
|
||||
image: vimagick/polipo
|
||||
command:
|
||||
authCredentials=username:password
|
||||
socksParentProxy=1.2.3.4:9050
|
||||
ports:
|
||||
- "8123:8123"
|
||||
restart: unless-stopped
|
||||
|
||||
20
polipo/docker-stack.yml
Normal file
20
polipo/docker-stack.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
|
||||
polipo:
|
||||
image: vimagick/polipo
|
||||
networks:
|
||||
- host_network
|
||||
deploy:
|
||||
mode: global
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == worker
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
|
||||
networks:
|
||||
host_network:
|
||||
external: true
|
||||
name: host
|
||||
Reference in New Issue
Block a user