2
0
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:
kev
2020-04-22 16:14:25 +08:00
parent 3deb43b51b
commit 096e939b78
6 changed files with 116 additions and 24 deletions

View File

@@ -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

View File

@@ -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
View 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