Skip to content

Instantly share code, notes, and snippets.

@adastreamer
Created September 8, 2016 12:10
Show Gist options
  • Save adastreamer/977e89374f16db1302b073fbb6330583 to your computer and use it in GitHub Desktop.
Save adastreamer/977e89374f16db1302b073fbb6330583 to your computer and use it in GitHub Desktop.
{
"name": "manager",
"services": [
{
"name": "lb",
"image": "dokkur/haproxy",
"target_num_containers": 1,
"autorestart": "ALWAYS",
"linked_to_service": [
{
"to_service": "manager-app",
"name": "manager-app"
}
],
"container_envvars": [
{
"key": "SSL_CERT",
"value": "cert_content"
},
{
"key": "STATS_AUTH",
"value": "admin:admin"
}
],
"container_ports": [
{
"protocol": "tcp",
"inner_port": 80,
"outer_port": 80
},
{
"protocol": "tcp",
"inner_port": 443,
"outer_port": 443
},
{
"protocol": "tcp",
"inner_port": 1936,
"outer_port": 1936
}
]
},
{
"name": "manager-app",
"image": "dokkur/manager",
"target_num_containers": 1,
"autorestart": "ALWAYS",
"linked_to_service": [
{
"to_service": "manager-database",
"name": "DB"
}
],
"container_envvars": [
{
"key": "DB_NAME",
"value": "local"
},
{
"key": "SLACK_CLIENT_ID",
"value": "SLACK_CLIENT_ID"
},
{
"key": "SLACK_CLIENT_SECRET",
"value": "SLACK_CLIENT_SECRET"
}
],
"container_ports": [
{
"protocol": "tcp",
"inner_port": 8000
}
]
}, {
"name": "manager-database",
"image": "mongo:3.3.10",
"target_num_containers": 1,
"autorestart": "ALWAYS",
"container_ports": [
{
"protocol": "tcp",
"inner_port": 27017,
"outer_port": 27017
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment