Created
March 29, 2018 18:14
-
-
Save remilapeyre/e4af292f548761c77c9c92d544a0d865 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"job": { | |
"teapot": { | |
"datacenters": [ | |
"DATACENTER" | |
], | |
"type": "service", | |
"group": { | |
"teapot": { | |
"task": { | |
"teapot": { | |
"driver": "docker", | |
"config": { | |
"image": "registry.infra.johnpaultech.com:4567/it/im-a-teapot:aef", | |
"logging": { | |
"type": "json-file" | |
}, | |
"port_map": { | |
"http": 8000 | |
} | |
}, | |
"resources": { | |
"cpu": 500, | |
"memory": 256, | |
"network": { | |
"mbits": 10, | |
"port": { | |
"http": {} | |
} | |
} | |
}, | |
"service": { | |
"name": "teapot", | |
"port": "http", | |
"tags": [ | |
"traefik.tags=api" | |
], | |
"check": { | |
"name": "alive", | |
"type": "tcp", | |
"interval": "10s", | |
"timeout": "2s" | |
} | |
}, | |
"template": { | |
"data": " MESSAGE=\"{{ key \"service/teapot/MESSAGE\" }}\"\n ", | |
"destination": "secrets/file.env", | |
"env": true | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment