mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 02:52:49 +01:00
25 lines
506 B
YAML
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:
|