Skip to content

Instantly share code, notes, and snippets.

@remilapeyre
Created March 29, 2018 18:14
Show Gist options
  • Save remilapeyre/e4af292f548761c77c9c92d544a0d865 to your computer and use it in GitHub Desktop.
Save remilapeyre/e4af292f548761c77c9c92d544a0d865 to your computer and use it in GitHub Desktop.
{
"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