2021-04-17 15:10:42 +02:00
|
|
|
version: '2.4'
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
2021-04-17 16:04:04 +02:00
|
|
|
build:
|
|
|
|
context: '..'
|
|
|
|
dockerfile: 'docker/Dockerfile.rel'
|
|
|
|
|
2021-04-17 15:10:42 +02:00
|
|
|
image: 'chewingbever/fej:latest'
|
|
|
|
restart: 'always'
|
|
|
|
|
|
|
|
environment:
|
|
|
|
- 'DATABASE_URL=postgres://fej:fej@db:5432/fej'
|
|
|
|
|
|
|
|
db:
|
2021-12-24 09:01:32 +01:00
|
|
|
image: 'postgres:14-alpine'
|
2021-04-17 15:10:42 +02:00
|
|
|
restart: 'always'
|
|
|
|
|
|
|
|
environment:
|
|
|
|
- 'POSTGRES_DB=fej'
|
|
|
|
- 'POSTGRES_USER=fej'
|
|
|
|
- 'POSTGRES_PASSWORD=fej'
|
|
|
|
healthcheck:
|
|
|
|
test: 'pg_isready -U fej'
|
|
|
|
interval: '30s'
|
|
|
|
timeout: '5s'
|
|
|
|
retries: 3
|
|
|
|
start_period: '0s'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- 'db-data:/var/lib/postgresql/data'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db-data:
|