2020-08-22 12:00:35 +02:00
|
|
|
---
|
|
|
|
version: '3'
|
2020-08-19 06:23:04 +02:00
|
|
|
services:
|
|
|
|
umami:
|
2022-07-21 14:31:09 +02:00
|
|
|
image: ghcr.io/umami-software/umami:postgresql-latest
|
2020-08-19 06:23:04 +02:00
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
environment:
|
2020-08-22 12:00:35 +02:00
|
|
|
DATABASE_URL: postgresql://umami:umami@db:5432/umami
|
2020-08-22 14:39:01 +02:00
|
|
|
DATABASE_TYPE: postgresql
|
2022-12-28 06:38:23 +01:00
|
|
|
APP_SECRET: replace-me-with-a-random-string
|
2020-08-22 12:00:35 +02:00
|
|
|
depends_on:
|
2023-05-06 00:53:16 +02:00
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2021-07-10 11:05:01 +02:00
|
|
|
restart: always
|
2023-11-27 09:25:53 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2020-08-22 12:00:35 +02:00
|
|
|
db:
|
2023-04-17 19:10:05 +02:00
|
|
|
image: postgres:15-alpine
|
2020-08-19 06:23:04 +02:00
|
|
|
environment:
|
2020-08-22 12:00:35 +02:00
|
|
|
POSTGRES_DB: umami
|
2020-08-19 06:23:04 +02:00
|
|
|
POSTGRES_USER: umami
|
|
|
|
POSTGRES_PASSWORD: umami
|
|
|
|
volumes:
|
2020-08-22 12:00:35 +02:00
|
|
|
- umami-db-data:/var/lib/postgresql/data
|
2021-07-10 11:05:01 +02:00
|
|
|
restart: always
|
2023-05-06 00:53:16 +02:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2020-08-19 06:23:04 +02:00
|
|
|
volumes:
|
2020-08-22 12:00:35 +02:00
|
|
|
umami-db-data:
|