34 lines
583 B
YAML
34 lines
583 B
YAML
version: '3.7'
|
|
|
|
x-logging: &json-log
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: 20m
|
|
max-file: '5'
|
|
|
|
networks:
|
|
backend:
|
|
driver: overlay
|
|
attachable: true
|
|
driver_opts:
|
|
encrypted: "true"
|
|
|
|
services:
|
|
unbound:
|
|
image: localhost:5000/unbound:latest
|
|
deploy:
|
|
mode: global
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 2
|
|
delay: 5s
|
|
order: start-first
|
|
failure_action: rollback
|
|
logging: *json-log
|
|
ports:
|
|
- '5353:5353/tcp'
|
|
- '5353:5353/udp'
|
|
networks:
|
|
- backend
|