frankfurter/docker-compose.yml
2020-05-02 17:46:48 +01:00

20 lines
400 B
YAML

version: '3'
services:
db:
container_name: db
image: postgres:12
environment:
POSTGRES_HOST_AUTH_METHOD: trust
web:
container_name: web
command: bundle exec 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
volumes:
data: