mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 12:32:30 +01:00
21 lines
434 B
YAML
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
|