mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-11-22 03:40:12 +00:00
add umami to production
This commit is contained in:
parent
05a9630bd2
commit
495d77a9ba
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,6 +5,7 @@
|
|||||||
config.json
|
config.json
|
||||||
postgres.env
|
postgres.env
|
||||||
tubearchivist.env
|
tubearchivist.env
|
||||||
|
umami.env
|
||||||
|
|
||||||
# example hooks
|
# example hooks
|
||||||
docker-hook.json
|
docker-hook.json
|
||||||
|
@ -54,3 +54,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.tubearchivist.com
|
||||||
|
- LETSENCRYPT_HOST=www.stats.tubearchivist.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
|
||||||
|
6
env/umami.sample.env
vendored
Normal file
6
env/umami.sample.env
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
DATABASE_URL=postgresql://url
|
||||||
|
DATABASE_TYPE=postgresql
|
||||||
|
HASH_SALT=xxxxxxxxxxxxx
|
||||||
|
POSTGRES_DB=umami
|
||||||
|
POSTGRES_USER=umami
|
||||||
|
POSTGRES_PASSWORD=yyyyyyyyyyyyy
|
@ -11,6 +11,7 @@
|
|||||||
<meta property="og:description" content="Your self hosted YouTube media server" />
|
<meta property="og:description" content="Your self hosted YouTube media server" />
|
||||||
<meta property="og:image" content="/static/img/banner-tube-archivist-dark.png" />
|
<meta property="og:image" content="/static/img/banner-tube-archivist-dark.png" />
|
||||||
<script type="text/javascript" src="/static/script.js"></script>
|
<script type="text/javascript" src="/static/script.js"></script>
|
||||||
|
<script async defer data-website-id="028c31cf-3e27-4f0f-8b7b-c938ac79b7dc" src="https://www.stats.tubearchivist.com/umami.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
Loading…
Reference in New Issue
Block a user