30 lines
615 B
Django/Jinja
30 lines
615 B
Django/Jinja
|
|
services:
|
|
dumbwhois:
|
|
image: dumbwareio/dumbwhois:latest
|
|
ports:
|
|
- target: 3000
|
|
published: 3000
|
|
protocol: tcp
|
|
mode: ingress
|
|
networks:
|
|
- default
|
|
- caddy_net
|
|
deploy:
|
|
mode: replicated
|
|
replicas: {{ item.replicas }}
|
|
restart_policy:
|
|
condition: {{ item.restart_condition }}
|
|
labels:
|
|
{% for key, val in item.labels.items() %}
|
|
{{ key }}: "{{ val }}"
|
|
{% endfor %}
|
|
placement:
|
|
constraints:
|
|
{% for constraint in item.constraints %}
|
|
- {{ constraint }}
|
|
{% endfor %}
|
|
|
|
networks:
|
|
caddy_net:
|
|
external: true |