Skip to content

Instantly share code, notes, and snippets.

@ramontayag
Last active October 29, 2016 14:35
Show Gist options
  • Save ramontayag/8a7beb809808a84998e09775e343cfa9 to your computer and use it in GitHub Desktop.
Save ramontayag/8a7beb809808a84998e09775e343cfa9 to your computer and use it in GitHub Desktop.
redis:
image: redis:3.0.5
expose:
- 6379
volumes:
- redis:/var/lib/redis/data
web:
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- .:/myapp
ports:
- "3000:3000"
env_file:
- .env.development
- .env.local
depends_on:
- db
- redis
volumes_from:
- bundle
sidekiq:
build: .
command: bundle exec sidekiq -C config/sidekiq.yml
volumes:
- .:/myapp
depends_on:
- db
- redis
env_file:
- .env.development
- .env.local
volumes_from:
- bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment