frankfurter/docker-compose.yml
2016-04-06 00:49:19 +02:00

21 lines
434 B
YAML

version: '2'
services:
postgres:
image: postgres
ports:
- 5432:5432
environment:
- POSTGRES_DB=fixer
fixer:
build: .
command: bundle exec unicorn -p 8080 -c /fixer-io/config/unicorn.rb
volumes:
- .:/fixer-io
ports:
- 8080:8080
environment:
- RACK_ENV=production
- DATABASE_URL=postgres://postgres:mysecretpassword@postgres/fixer
depends_on:
- postgres