frankfurter/docker-compose.yml
Hakan Ensari c07c84ad1f Revert "Replace Unicorn with Puma"
This reverts commit 11c2d760bc.
2018-09-12 00:54:39 +01:00

25 lines
512 B
YAML

version: '3'
services:
db:
image: postgres
volumes:
- data:/var/lib/postgresql/data
web:
command: unicorn -c config/unicorn.rb
entrypoint: bin/wait-for-it.sh db:5432 -s --
environment:
DATABASE_URL: postgres://postgres@db/postgres
expose:
- '8080'
links:
- db
scheduler:
command: bin/schedule
entrypoint: bin/wait-for-it.sh db:5432 -s --
environment:
DATABASE_URL: postgres://postgres@db/postgres
links:
- db
volumes:
data: