Created
January 23, 2017 11:58
-
-
Save josetapadas/08c92e5a5c2cd892b3c106e02b2b6179 to your computer and use it in GitHub Desktop.
docker-compose file with Sidekiq
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
version: '2' | |
services: | |
database: | |
image: postgres | |
volumes: | |
- ./data/pgdata:/pgdata | |
env_file: | |
- '.env' | |
web: | |
links: | |
- database | |
- redis | |
build: . | |
volumes: | |
- .:/opt/fooapp | |
ports: | |
- '3000:3000' | |
command: [bundle, exec, puma] | |
env_file: | |
- '.env' | |
redis: | |
image: 'redis:3.2-alpine' | |
command: [redis-server] | |
ports: | |
- '6379:6379' | |
volumes: | |
- './data/redisdata:/var/lib/redis/data' | |
sidekiq: | |
links: | |
- database | |
- redis:foo.redis.server | |
build: . | |
command: [bundle, exec, sidekiq] | |
volumes: | |
- .:/opt/fooapp | |
env_file: | |
- '.env' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment