2015-04-26 15:23:45 +02:00
|
|
|
app: &app
|
|
|
|
build: .
|
|
|
|
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
|
2015-05-02 14:22:39 +02:00
|
|
|
- TEST_DATABASE_URL=mysql2://root:secret@mysql/test
|
2015-04-26 15:23:45 +02:00
|
|
|
|
|
|
|
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
|