Skip to content

Instantly share code, notes, and snippets.

@designhunger
Created May 12, 2016 06:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save designhunger/2548d1b10a1ce566a39a057b67591e42 to your computer and use it in GitHub Desktop.
Save designhunger/2548d1b10a1ce566a39a057b67591e42 to your computer and use it in GitHub Desktop.
Including pod definitions. Swarms not starting e.g. "Invalid arguments provided."
{
"name": "magebox",
"components": {
"app": {
"pod": "children"
},
"app/php": {
"image": "registry.giantswarm.io/designhunger/magebox-magento:latest",
"ports": [9000],
"volumes": [
{
"path": "/code",
"size": "2 GB"
}
],
"links": [
{
"component": "mysql",
"target_port": 3306,
"alias": "mysql"
}
]
},
"app/nginx": {
"image": "registry.giantswarm.io/designhunger/magebox-nginx:latest",
"ports": [80],
"links": [
{
"component": "app/php",
"target_port": 9000,
"alias": "php"
}
],
"volumes": [
{
"volumes-from": "app/php"
}
],
"domains": {
"80": "magebox-designhunger.gigantic.io"
}
},
"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