2017-11-03 22:32:30 +01:00
|
|
|
version: '3'
|
2016-04-06 00:49:19 +02:00
|
|
|
services:
|
2016-04-11 15:28:22 +02:00
|
|
|
db:
|
2019-12-24 14:11:32 +01:00
|
|
|
container_name: db
|
2020-04-01 12:54:04 +02:00
|
|
|
image: postgres:12
|
|
|
|
environment:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
2016-04-11 15:28:22 +02:00
|
|
|
web:
|
2020-05-02 18:46:48 +02:00
|
|
|
container_name: web
|
2019-12-20 02:04:05 +01:00
|
|
|
command: bundle exec unicorn -c config/unicorn.rb
|
2018-01-08 13:12:54 +01:00
|
|
|
entrypoint: bin/wait-for-it.sh db:5432 -s --
|
2016-04-06 00:49:19 +02:00
|
|
|
environment:
|
2017-01-03 14:37:40 +01:00
|
|
|
DATABASE_URL: postgres://postgres@db/postgres
|
2017-11-03 22:32:30 +01:00
|
|
|
expose:
|
2018-09-12 01:54:39 +02:00
|
|
|
- '8080'
|
2017-01-03 14:37:40 +01:00
|
|
|
links:
|
2016-04-11 15:28:22 +02:00
|
|
|
- db
|
2017-11-03 22:32:30 +01:00
|
|
|
volumes:
|
|
|
|
data:
|