Skip to content

Instantly share code, notes, and snippets.

@toolmantim
Created April 1, 2015 07:27
Show Gist options
  • Save toolmantim/c38f221207da77340551 to your computer and use it in GitHub Desktop.
Save toolmantim/c38f221207da77340551 to your computer and use it in GitHub Desktop.
Example docker-compose.yml for a Rails application
app:
build: .
links:
- db:db
- redis:redis
- memcache:memcache
volumes:
- ./:/app
environment:
PGHOST: db
PGUSER: postgres
REDIS_URL: redis://redis
MEMCACHE_SERVERS: memcache
db:
image: postgres
redis:
image: redis
memcache:
image: tutum/memcached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment