{ "module": "umami", "version": "1", "requires": [ "postgres-database" ], "contributes": { "postgres-database": { "name": "umami" } }, "binds": { "postgres-database": "/var/lib/umami/database.json" }, "secrets": { "postgres-database": "/var/lib/umami/database.secret" }, "own-secrets": { "app-secret": "/var/lib/umami/app.secret" }, "capabilities": [ "container-runtime" ], "listens": [ { "port": 3000, "protocol": "tcp", "from": "mesh", "why": "the analytics pages and the collection endpoint" } ], "resources": [ { "id": "state", "type": "directory", "path": "/var/lib/umami", "mode": "0700" }, { "id": "server-env", "type": "file", "path": "/var/lib/umami/server.env", "mode": "0600", "content": "DATABASE_URL=postgresql://${bound:postgres-database:as}:${secret:postgres-database}@${bound:postgres-database:at}:${bound:postgres-database:port}/umami\nAPP_SECRET=${secret:app-secret}\n" }, { "id": "server", "type": "container", "name": "umami", "image": "ghcr.io/umami-software/umami@sha256:fa32d116cf20cad52cbc3fad9a63b46e7fa02299d8f967168eb453d49c476b4a", "env-file": [ "/var/lib/umami/server.env" ], "ports": [ "3000" ] } ] }