mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 00:55:37 +01:00
feat(config): adjust to upsun
This commit is contained in:
parent
dc06a9c3e1
commit
d93c78a0ec
4 changed files with 84 additions and 41 deletions
58
.upsun/config.yaml
Normal file
58
.upsun/config.yaml
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
# Upsun Konfiguration für Umami Analytics
|
||||
# https://docs.upsun.com/configuration.html
|
||||
|
||||
applications:
|
||||
app:
|
||||
# Die Anwendung verwendet Node.js 22
|
||||
stack:
|
||||
- 'nodejs:22'
|
||||
|
||||
# Build-Konfiguration
|
||||
build:
|
||||
flavor: none
|
||||
|
||||
# Build- und Deploy-Hooks
|
||||
hooks:
|
||||
build: |
|
||||
set -e
|
||||
corepack enable
|
||||
corepack prepare pnpm@latest --activate
|
||||
pnpm install --frozen-lockfile
|
||||
pnpm build
|
||||
deploy: |
|
||||
set -e
|
||||
pnpm update-db
|
||||
|
||||
# Writable Mounts für Uploads
|
||||
mounts:
|
||||
'web/uploads':
|
||||
source: storage
|
||||
source_path: uploads
|
||||
|
||||
# Webserver-Konfiguration
|
||||
web:
|
||||
commands:
|
||||
start: 'pnpm start'
|
||||
|
||||
# Beziehung zur PostgreSQL-Datenbank
|
||||
relationships:
|
||||
postgresdatabase: 'dbpostgres:postgresql'
|
||||
|
||||
# Service-Definitionen
|
||||
services:
|
||||
dbpostgres:
|
||||
type: postgresql:16
|
||||
configuration:
|
||||
resources:
|
||||
disk: 5120
|
||||
|
||||
# Routen-Konfiguration
|
||||
routes:
|
||||
'https://{default}/':
|
||||
type: upstream
|
||||
upstream: 'app:http'
|
||||
|
||||
# Optional: www-Redirect aktivieren
|
||||
# 'https://www.{default}/':
|
||||
# type: redirect
|
||||
# to: 'https://{default}/'
|
||||
Loading…
Add table
Add a link
Reference in a new issue