frankfurter/docker-compose.yml
2018-07-20 21:02:46 +01:00

25 lines
506 B
YAML

version: '3'
services:
db:
image: postgres
volumes:
- data:/var/lib/postgresql/data
web:
command: puma -C config/puma.rb
entrypoint: bin/wait-for-it.sh db:5432 -s --
environment:
DATABASE_URL: postgres://postgres@db/postgres
expose:
- '3000'
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: