-
-
Save webwurst/d814a92dc323290c6a5cf8dbb4755072 to your computer and use it in GitHub Desktop.
Including pod definition
This file contains 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
{ | |
"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