services: umami: # image: ghcr.io/umami-software/umami:postgresql-latest image: ghcr.io/umami-software/umami:postgresql-latest@sha256:b64f40400d77bcadd39cf5c62a1e368c99524ca442024f96e1133355a19a5dbc container_name: umami restart: unless-stopped environment: DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB} APP_SECRET: ${APP_SECRET} depends_on: db: condition: service_healthy healthcheck: test: ['CMD-SHELL', 'curl -f http://localhost:3000/api/heartbeat || exit 1'] interval: 10s timeout: 5s retries: 3 networks: - marina-net - umami-backend labels: - traefik.enable=true - traefik.docker.network=marina-net - traefik.http.routers.umami.rule=Host(`analytics.mifi.holdings`) - traefik.http.routers.umami.entrypoints=websecure - traefik.http.routers.umami.tls=true - traefik.http.routers.umami.tls.certresolver=letsencrypt - traefik.http.services.umami.loadbalancer.server.port=3000 db: # image: postgres:16-alpine image: postgres:16-alpine@sha256:f2f98726820d0342055351c6e9d36e705f5bfffb3dd53ff556325114b08afb6d container_name: umami-db restart: unless-stopped environment: POSTGRES_DB: ${POSTGRES_DB} POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} volumes: - type: bind source: /mnt/config/docker/umami/postgres target: /var/lib/postgresql/data bind: create_host_path: false networks: - umami-backend healthcheck: test: ['CMD-SHELL', 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'] interval: 5s timeout: 5s retries: 5 networks: marina-net: external: true umami-backend: driver: bridge