Skip to content

Instantly share code, notes, and snippets.

@krainboltgreene
Created September 20, 2015 05:15
Show Gist options
  • Save krainboltgreene/7863c9609824f32b184a to your computer and use it in GitHub Desktop.
Save krainboltgreene/7863c9609824f32b184a to your computer and use it in GitHub Desktop.
AUTHOR "Kurtis Rainbolt-Greene <me@kurtisrainboltgreene.name>"
ISO boot2docker
MACHINE mythoas
CONTAINER api
FROM ubuntu:latest
LINK postgres:database
LINK memcached:cache
WORKDIR /usr/src/application
ENVFILE .environment-development
SYNCUP .:/usr/src/application
SYNCDOWN /usr/src/application/Gemfile.lock:.
SYNCIGNORE spec/ log/ tmp/ .git/ .ruby-* .environment-* .*ignore Procfile README.md .travis.yml
APPLY ruby:latest
APPLY postgres-client:latest
RUN /usr/src/application/bin/setup
EXPOSE 3000
CMD ["bin/shogun", "server", "start"]
CONTAINER web
SYNCUP ../web:/usr/src/application
SYNCDOWN /usr/src/application/Gemfile.lock:.
SYNCIGNORE
log/ tmp/
APPLY nodejs:latest
RUN bin/setup
EXPOSE 3001
CMD ["npm", "start"]
CONTAINER postgres:latest
CONTAINER memcached:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment