-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 925 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Fred Brooker <git@gscloud.cz>
# based on: https://github.com/umami-software/umami/blob/master/docker-compose.yml
services:
umami:
image: ${UMAMI_IMAGE}
container_name: ${UMAMI_CONTAINER_NAME}
ports:
- ${UMAMI_PORT}:3000
environment:
DATABASE_URL: postgresql://umami:${ADMIN_PASSWORD}@db:5432/umami
DATABASE_TYPE: postgresql
APP_SECRET: ${SECRET_KEY_BASE}
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:15-alpine
container_name: ${UMAMI_DB_CONTAINER_NAME}
environment:
POSTGRES_DB: umami
POSTGRES_USER: umami
POSTGRES_PASSWORD: ${ADMIN_PASSWORD}
volumes:
- ./umami-db-data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5