foodsoft/docker-compose.yml
Benjamin Meichsner 0bdeaa1570 Updated Docker setup.
* Use ruby version 3
* Use bundle container
* Run rails commands as app user
2016-02-24 00:11:31 +01:00

44 lines
824 B
YAML

bundle:
image: foodsoft_app
command: /bin/true
volumes:
- /home/app/bundle
app: &app
build: .
command: bundle exec rails server --binding 0.0.0.0
volumes_from:
- bundle
volumes:
- .:/home/app/src
ports:
- "3000:3000"
links:
- mysql
- redis
- mailcatcher
environment:
- DATABASE_URL=mysql2://root:secret@mysql/development?encoding=utf8
- REDIS_URL=redis://redis:6379
- QUEUE=foodsoft_notifier
- TEST_DATABASE_URL=mysql2://root:secret@mysql/test?encoding=utf8
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