version: '3.9' services: umami: container_name: {{ customer }}-umami image: ghcr.io/umami-software/umami:postgresql-latest restart: always labels: - "diun.enable=true" ports: - "127.0.0.1:3008:3000" environment: DATABASE_URL: postgresql://{{ umami_postgres_user }}:{{ umami_postgres_password }}@{{ customer }}-umami-db:5432/umami DATABASE_TYPE: postgresql APP_SECRET: '{{ umami_app_secret }}' networks: {{ customer }}-umami: ipv4_address: 172.20.13.2 depends_on: umami-db: condition: service_healthy umami-db: container_name: {{ customer }}-umami-db image: postgres:15-alpine environment: POSTGRES_DB: 'umami' POSTGRES_USER: '{{ umami_postgres_user }}' POSTGRES_PASSWORD: '{{ umami_postgres_password }}' volumes: - {{ customer }}-umami-postgres:/var/lib/postgresql/data - {{ customer }}-umami-backups:/tmp/backups restart: always healthcheck: test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] interval: 5s timeout: 5s retries: 5 networks: {{ customer }}-umami: ipv4_address: 172.20.13.3 networks: {{ customer }}-umami: ipam: driver: default config: - subnet: 172.20.13.0/28 gateway: 172.20.13.1 volumes: {{ customer }}-umami-postgres: {{ customer }}-umami-backups: