Add encryption and lower the cache while using docker's built in dns

This commit is contained in:
caskd 2019-11-30 16:19:03 +01:00
parent 868a4c2f10
commit c866a0c324
No known key found for this signature in database
GPG Key ID: 79DB21404E300A27
2 changed files with 9 additions and 6 deletions

View File

@ -4,8 +4,12 @@ networks:
frontend: frontend:
driver: overlay driver: overlay
attachable: true attachable: true
driver_opts:
encrypted: "true"
cache: cache:
driver: overlay driver: overlay
driver_opts:
encrypted: "true"
secrets: secrets:
cf_op: cf_op:

View File

@ -23,14 +23,13 @@ defaults
resolvers dockerdns resolvers dockerdns
nameserver docker 127.0.0.11:53 nameserver docker 127.0.0.11:53
nameserver cf 1.1.1.1:53
resolve_retries 2 resolve_retries 2
timeout retry 300ms timeout retry 300ms
hold other 30s hold other 100ms
hold refused 30s hold refused 100ms
hold nx 30s hold nx 100ms
hold timeout 30s hold timeout 3s
hold valid 10s hold valid 1s
frontend https frontend https
mode http mode http