Skip to content

Instantly share code, notes, and snippets.

@josetapadas
Created January 23, 2017 12:26
Show Gist options
  • Save josetapadas/a94dc057f26e442c9d17f20721b09dbd to your computer and use it in GitHub Desktop.
Save josetapadas/a94dc057f26e442c9d17f20721b09dbd to your computer and use it in GitHub Desktop.
tty open
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'
stdin_open: true
tty: true
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'
stdin_open: true
tty: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment