26 lines
669 B
YAML
26 lines
669 B
YAML
version: '3'
|
|
|
|
services:
|
|
db:
|
|
container_name: db
|
|
image: postgres:12
|
|
volumes:
|
|
- ${DOCKERCONFIGS}/healthchecks/data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=$DB_NAME
|
|
- POSTGRES_PASSWORD=$DB_PASSWORD
|
|
|
|
healthchecks:
|
|
container_name: healthchecks
|
|
image: healthchecks/healthchecks:v2.10
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "8000:8000"
|
|
# To enable SMTP on port 2525, set SMTPD_PORT=2525 in .env
|
|
# and uncomment the following line:
|
|
# - "2525:2525"
|
|
depends_on:
|
|
- db
|
|
command: bash -c 'while !</dev/tcp/db/5432; do sleep 1; done; uwsgi /opt/healthchecks/docker/uwsgi.ini'
|