Create faraday.yaml
https://github.com/infobyte/faraday Open Source Vulnerability Management Platform Healthchecks works too
This commit is contained in:
54
templates/compose/faraday.yaml
Normal file
54
templates/compose/faraday.yaml
Normal file
@@ -0,0 +1,54 @@
|
||||
services:
|
||||
postgresql:
|
||||
image: 'postgres:latest'
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- 'pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}'
|
||||
interval: 15s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
volumes:
|
||||
- 'faraday-db:/var/lib/postgresql/data'
|
||||
environment:
|
||||
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}'
|
||||
- 'POSTGRES_USER=${SERVICE_USER_POSTGRESQL}'
|
||||
- 'POSTGRES_DB=${POSTGRES_DB:-faraday}'
|
||||
redis:
|
||||
image: 'redis:alpine'
|
||||
command: '--save 60 1 --loglevel warning'
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- 'redis-cli ping | grep PONG'
|
||||
interval: 15s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
volumes:
|
||||
- 'redis:/data'
|
||||
faraday:
|
||||
image: 'faradaysec/faraday:latest'
|
||||
restart: always
|
||||
entrypoint: /entrypoint.sh
|
||||
environment:
|
||||
- SERVICE_FQDN_FARADAY_5985
|
||||
- 'AUTHENTIK_POSTGRESQL__PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}'
|
||||
- 'PGSQL_USER=${SERVICE_USER_POSTGRESQL}'
|
||||
- 'PGSQL_PASSWD=${SERVICE_PASSWORD_POSTGRESQL}'
|
||||
- 'PGSQL_DBNAME=${POSTGRES_DB}'
|
||||
- PGSQL_HOST=postgresql
|
||||
- REDIS_SERVER=redis
|
||||
volumes:
|
||||
- '/faraday:/home/faraday/.faraday:rw'
|
||||
depends_on:
|
||||
postgresql:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "nc", "-z", "localhost", "5985"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
Reference in New Issue
Block a user