Skip to content

Commit

Permalink
Added docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
benni-as committed Apr 26, 2015
1 parent 83dd18e commit f9cdd7f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,35 @@
app: &app
build: .
command: bundle exec rails s
volumes:
- .:/usr/src/app
ports:
- "3000:3000"
links:
- mysql
- redis
- mailcatcher
environment:
- DATABASE_URL=mysql2://root:secret@mysql/development
- REDIS_URL=redis://redis:6379
- QUEUE=foodsoft_notifier

resque:
<<: *app
command: rake resque:work
ports: []

mailcatcher:
image: aboutsource/mailcatcher
ports:
- "1080:1080"

mysql:
image: mysql:5.5
volumes:
- ~/.docker-volumes/foodsoft/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=secret

redis:
image: redis:2.8

0 comments on commit f9cdd7f

Please sign in to comment.