mirror of
https://github.com/michivonah/docker.git
synced 2026-03-23 16:49:29 +01:00
feat: add compose file for swarm stack of blocky
This commit is contained in:
parent
459ccc9ec7
commit
b6f6aed471
1 changed files with 36 additions and 0 deletions
36
blocky/docker-compose.swarm.yml
Normal file
36
blocky/docker-compose.swarm.yml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
services:
|
||||
blocky:
|
||||
image: ghcr.io/0xerr0r/blocky
|
||||
deploy:
|
||||
replicas: 3
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
ports:
|
||||
- target: 53
|
||||
published: 53
|
||||
protocol: tcp
|
||||
- target: 53
|
||||
published: 53
|
||||
protocol: udp
|
||||
- target: 443
|
||||
published: 443
|
||||
protocol: tcp
|
||||
- target: 853
|
||||
published: 853
|
||||
protocol: tcp
|
||||
environment:
|
||||
- TZ=Europe/Zurich
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
configs:
|
||||
- source: blocky_config
|
||||
target: /app/config.yml
|
||||
|
||||
configs:
|
||||
blocky_config:
|
||||
file: ./config.yml
|
||||
#external: true
|
||||
|
||||
# docker stack deploy -c docker-compose.swarm.yml blocky
|
||||
# docker stack services blocky --> services anzeigen
|
||||
# docker stack ps blocky
|
||||
Loading…
Add table
Add a link
Reference in a new issue