Created
May 12, 2016 06:18
-
-
Save designhunger/f6bae521e14fcf919261bbf18ce502a6 to your computer and use it in GitHub Desktop.
Working example, but not sharing volumes between php and nginx.
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": { | |
"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" | |
} | |
] | |
}, | |
"nginx": { | |
"image": "registry.giantswarm.io/designhunger/magebox-nginx:latest", | |
"ports": [80], | |
"links": [ | |
{ | |
"component": "php", | |
"target_port": 9000, | |
"alias": "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