Skip to content

Instantly share code, notes, and snippets.

@bkatiemills
Created October 15, 2018 16:45
Show Gist options
  • Save bkatiemills/0983e81a44a3e15c878441bd466f4fa7 to your computer and use it in GitHub Desktop.
Save bkatiemills/0983e81a44a3e15c878441bd466f4fa7 to your computer and use it in GitHub Desktop.
version: "3.3"
services:
cache:
image: docker/dtr-content-cache:2.6.0-beta3
entrypoint:
- /start.sh
- "/config.yml"
ports:
- 443:443
deploy:
replicas: 1
placement:
constraints: [node.labels.dtr.cache == true]
restart_policy:
condition: on-failure
configs:
- config.yml
secrets:
- dtr.cert.pem
- cache.cert.pem
- cache.key.pem
configs:
config.yml:
file: ./config.yml
secrets:
dtr.cert.pem:
file: ./certs/dtr.cert.pem
cache.cert.pem:
file: ./certs/cache.cert.pem
cache.key.pem:
file: ./certs/cache.key.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment