41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
|
# {{ ansible_managed }}
|
||
|
|
||
|
version: '3.1'
|
||
|
|
||
|
services:
|
||
|
healthchecks:
|
||
|
image: healthchecks/healthchecks:{{ docker_healthchecks_version }}
|
||
|
environment: {{ docker_healthchecks_config_env }}
|
||
|
restart: always
|
||
|
networks:
|
||
|
- traefik
|
||
|
- healthchecks
|
||
|
labels:
|
||
|
- "org.label-schema.group=monitoring"
|
||
|
- "traefik.enable=true"
|
||
|
- "traefik.docker.network=traefik"
|
||
|
- "traefik.http.routers.{{ docker_healthchecks_service_id }}.entrypoints=web"
|
||
|
- "traefik.http.routers.{{ docker_healthchecks_service_id }}.rule=Host(`{{ docker_healthchecks_fqdn }}`)"
|
||
|
- "traefik.http.services.{{ docker_healthchecks_service_id }}.loadbalancer.server.port=8000"
|
||
|
depends_on:
|
||
|
- db
|
||
|
command: bash -c 'uwsgi /opt/healthchecks/docker/uwsgi.ini'
|
||
|
|
||
|
|
||
|
db:
|
||
|
image: postgres:13
|
||
|
volumes:
|
||
|
- {{ docker_healthchecks_data_dir }}/{{ docker_healthchecks_service_id }}/postgresql-data:/var/lib/postgresql/data
|
||
|
environment:
|
||
|
POSTGRES_DB: "{{ docker_healthchecks_db }}"
|
||
|
POSTGRES_USER: "{{ docker_healthchecks_db_user }}"
|
||
|
POSTGRES_PASSWORD: "{{ docker_healthchecks_db_password }}"
|
||
|
networks:
|
||
|
- healthchecks
|
||
|
|
||
|
networks:
|
||
|
traefik:
|
||
|
external: true
|
||
|
healthchecks:
|
||
|
internal: true
|