Skip to content

Instantly share code, notes, and snippets.

@webwurst
Forked from designhunger/swarm.json
Last active May 12, 2016 17:13
Show Gist options
  • Save webwurst/d814a92dc323290c6a5cf8dbb4755072 to your computer and use it in GitHub Desktop.
Save webwurst/d814a92dc323290c6a5cf8dbb4755072 to your computer and use it in GitHub Desktop.
Including pod definition
{
"name": "magebox",
"components": {
"app": {
"pod": "children",
"expose": [
{
"component": "app/nginx",
"target_port": "80",
"port": "80"
}
]
},
"app/php": {
"image": "registry.giantswarm.io/designhunger/magebox-magento:latest",
"ports": [9000],
"volumes": [
{
"path": "/code",
"size": "2 GB",
"shared": true
}
],
"links": [
{
"component": "mysql",
"target_port": 3306,
"alias": "mysql"
}
]
},
"app/nginx": {
"image": "registry.giantswarm.io/designhunger/magebox-nginx:latest",
"ports": [80],
"domains": {
"80": "magebox-designhunger.gigantic.io"
},
"volumes": [
{
"volumes-from": "app/php"
}
]
},
"mysql": {
"image": "mariadb:10.1.13",
"ports": [3306],
"env": {
"MYSQL_ROOT_PASSWORD": "password",
"MYSQL_DATABASE": "magento",
"MYSQL_USER": "magento",
"MYSQL_PASSWORD": "password"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment