Skip to content

Instantly share code, notes, and snippets.

@slemeur
Last active July 11, 2017 08:26
Show Gist options
  • Select an option

  • Save slemeur/a778fd5b03b09fa2b7e5b2ebdaef314e to your computer and use it in GitHub Desktop.

Select an option

Save slemeur/a778fd5b03b09fa2b7e5b2ebdaef314e to your computer and use it in GitHub Desktop.
che-compose-recipe-5.0
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