[closes #33] Added compose file; ./fejctl rr works now
This commit is contained in:
parent
65c3d616de
commit
00bf8501dd
3 changed files with 52 additions and 2 deletions
35
docker/docker-compose.yml
Normal file
35
docker/docker-compose.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
version: '2.4'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: 'chewingbever/fej:latest'
|
||||
restart: 'always'
|
||||
|
||||
depends_on:
|
||||
db:
|
||||
condition: 'service_healthy'
|
||||
|
||||
environment:
|
||||
- 'DATABASE_URL=postgres://fej:fej@db:5432/fej'
|
||||
|
||||
db:
|
||||
image: 'postgres:13-alpine'
|
||||
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:
|
||||
Reference in a new issue