Umami
Fungsi
Umami adalah webanalytic tool yang berfungsi untuk track statistik website seperti jumlah pelawat, jumlah page view dan lain lain.
Environment
- Ubuntu 22.04 LTS
- Docker 20.10.12
Install docker
1
2
sudo apt install docker.io
sudo apt install docker-compose
Bina folder
1
2
mkdir umami
cd umami
Bina docker-compose.yaml file
1
touch docker-compose.yaml
Edit docker-compose.yaml file
1
nano docker-compose.yaml
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
version: '3'
services:
umami:
image: ghcr.io/mikecao/umami:postgresql-latest
ports:
- "3000:3000"
environment:
DATABASE_URL: postgresql://umami:umami@db:5432/umami
DATABASE_TYPE: postgresql
HASH_SALT: replace-me-with-a-random-string
depends_on:
- db
restart: always
db:
image: postgres:12-alpine
environment:
POSTGRES_DB: umami
POSTGRES_USER: umami
POSTGRES_PASSWORD: umami
volumes:
- ./sql/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro
- umami-db-data:/var/lib/postgresql/data
restart: always
volumes:
umami-db-data:
Run docker-compose
1
sudo docker-compose up -d
Layari webserver
http://localhost:3000
Link berguna
Pos ini dilesenkan di bawah
CC BY 4.0
oleh penulis.