add umami
This commit is contained in:
parent
e6962e6b50
commit
96eb9b6ffa
|
@ -7,6 +7,7 @@ config.h
|
||||||
|
|
||||||
# env files
|
# env files
|
||||||
postgres.env
|
postgres.env
|
||||||
|
umami.env
|
||||||
|
|
||||||
# frontend font files
|
# frontend font files
|
||||||
*.ttf
|
*.ttf
|
||||||
|
|
|
@ -59,3 +59,26 @@ services:
|
||||||
- ./env/postgres.env
|
- ./env/postgres.env
|
||||||
expose:
|
expose:
|
||||||
- "5432"
|
- "5432"
|
||||||
|
# umami stats
|
||||||
|
umami:
|
||||||
|
image: ghcr.io/mikecao/umami:postgresql-latest
|
||||||
|
container_name: umami
|
||||||
|
expose:
|
||||||
|
- "3000"
|
||||||
|
env_file:
|
||||||
|
- ./env/umami.env
|
||||||
|
environment:
|
||||||
|
- VIRTUAL_HOST=www.stats.lpb-air.com
|
||||||
|
- LETSENCRYPT_HOST=www.stats.lpb-air.com
|
||||||
|
depends_on:
|
||||||
|
- umami-db
|
||||||
|
restart: always
|
||||||
|
umami-db:
|
||||||
|
image: postgres:14
|
||||||
|
container_name: umami-db
|
||||||
|
env_file:
|
||||||
|
- ./env/umami.env
|
||||||
|
volumes:
|
||||||
|
- ./volume/umami/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro
|
||||||
|
- ./volume/umami/db:/var/lib/postgresql/data
|
||||||
|
restart: always
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
DATABASE_URL=postgresql://url
|
||||||
|
DATABASE_TYPE=postgresql
|
||||||
|
HASH_SALT=xxxxxxxxxxxxx
|
||||||
|
POSTGRES_DB=umami
|
||||||
|
POSTGRES_USER=umami
|
||||||
|
POSTGRES_PASSWORD=yyyyyyyyyyyyy
|
|
@ -13,6 +13,7 @@
|
||||||
<script src="{{ url_for('static', filename='js/aqi.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/aqi.js') }}"></script>
|
||||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}">
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}">
|
||||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/lightbox.css') }}">
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/lightbox.css') }}">
|
||||||
|
<script async defer data-website-id="903006c2-afce-40ff-8ba3-20041de11e92" src="https://www.stats.lpb-air.com/umami.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="preload">
|
<div class="preload">
|
||||||
|
|
Loading…
Reference in New Issue