frankfurter/docker-compose.yml

32 lines
633 B
YAML
Raw Normal View History

version: '3'
2016-04-06 00:49:19 +02:00
services:
2016-04-11 15:28:22 +02:00
db:
2016-04-06 00:49:19 +02:00
image: postgres
volumes:
- data:/var/lib/postgresql/data
2016-04-11 15:28:22 +02:00
web:
build:
context: ./app
command: unicorn -c config/unicorn.rb
2016-04-06 00:49:19 +02:00
environment:
2017-01-03 14:37:40 +01:00
DATABASE_URL: postgres://postgres@db/postgres
entrypoint: ./wait-for-it.sh db:5432 -s --
expose:
- '8080'
2017-01-03 14:37:40 +01:00
links:
2016-04-11 15:28:22 +02:00
- db
2017-11-09 13:59:19 +01:00
scheduler:
build:
context: ./app
command: bin/schedule
environment:
DATABASE_URL: postgres://postgres@db/postgres
links:
- db
nginx-proxy:
image: jwilder/nginx-proxy
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
volumes:
data: