Created
November 16, 2016 15:18
-
-
Save slemeur/611277d4f9e00a678658c2865562a79d to your computer and use it in GitHub Desktop.
Sample Compose Recipe
This file contains hidden or 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
| services: | |
| db: | |
| image: codenvy/mysql // Base image | |
| environment: | |
| MYSQL_USER: petclinic | |
| MYSQL_PASSWORD: password | |
| mem_limit: 2147483648 // Memory used by the machine | |
| command: [service, mysql, start] // Execute “service mysql start” | |
| volumes_from: dev-machine // Share a volume mount from ‘dev-machine’ | |
| dev-machine: | |
| image: codenvy/ubuntu_jdk8 | |
| mem_limit: 2147483648 | |
| expose: 3000 // Expose port 3000 | |
| depends_on: | |
| - db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment