mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 02:52:49 +01:00
32 lines
633 B
YAML
32 lines
633 B
YAML
version: '3'
|
|
services:
|
|
db:
|
|
image: postgres
|
|
volumes:
|
|
- data:/var/lib/postgresql/data
|
|
web:
|
|
build:
|
|
context: ./app
|
|
command: unicorn -c config/unicorn.rb
|
|
environment:
|
|
DATABASE_URL: postgres://postgres@db/postgres
|
|
entrypoint: ./wait-for-it.sh db:5432 -s --
|
|
expose:
|
|
- '8080'
|
|
links:
|
|
- db
|
|
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:
|