mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 03:55:37 +01:00
Refactor configuration files for consistency and readability. Update docker-compose and podman-compose to use single quotes for strings. Adjust healthcheck commands to use single quotes. Clean up whitespace in various files, including README and JSON language files, to ensure proper formatting.
This commit is contained in:
parent
610ca29cb5
commit
d961c058dd
13 changed files with 6793 additions and 2456 deletions
|
|
@ -1,6 +1,5 @@
|
|||
# How to deploy umami on podman
|
||||
|
||||
|
||||
## How to use
|
||||
|
||||
1. Rename `env.sample` to `.env`
|
||||
|
|
@ -9,7 +8,6 @@
|
|||
|
||||
If you need to stop umami, you can do so by running `podman-compose down`.
|
||||
|
||||
|
||||
### Install systemd service (optional)
|
||||
|
||||
If you want to install a systemd service to run umami, you can use the provided
|
||||
|
|
@ -17,9 +15,8 @@ systemd service.
|
|||
|
||||
Edit `umami.service` and change these two variables:
|
||||
|
||||
|
||||
WorkingDirectory=/opt/apps/umami
|
||||
EnvironmentFile=/opt/apps/umami/.env
|
||||
WorkingDirectory=/opt/apps/umami
|
||||
EnvironmentFile=/opt/apps/umami/.env
|
||||
|
||||
`WorkingDirectory` should be changed to the path in which `podman-compose.yml`
|
||||
is located.
|
||||
|
|
@ -30,16 +27,13 @@ located.
|
|||
You can run the script `install-systemd-user-service` to install the systemd
|
||||
service under the current user.
|
||||
|
||||
|
||||
./install-systemd-user-service
|
||||
./install-systemd-user-service
|
||||
|
||||
Note: this script will enable the service and also start it. So it will assume
|
||||
that umami is not currently running. If you started it previously, bring it
|
||||
that umami is not currently running. If you started it previously, bring it
|
||||
down using:
|
||||
|
||||
podman-compose down
|
||||
|
||||
|
||||
podman-compose down
|
||||
|
||||
## Compatibility
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
version: "3.8"
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
umami:
|
||||
container_name: umami
|
||||
image: ghcr.io/umami-software/umami:postgresql-latest
|
||||
ports:
|
||||
- "127.0.0.1:3000:3000"
|
||||
- '127.0.0.1:3000:3000'
|
||||
environment:
|
||||
DATABASE_URL: ${DATABASE_URL}
|
||||
DATABASE_TYPE: ${DATABASE_TYPE}
|
||||
|
|
@ -16,7 +16,7 @@ services:
|
|||
init: true
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:3000/api/heartbeat || exit 1"]
|
||||
test: ['CMD-SHELL', 'curl -f http://localhost:3000/api/heartbeat || exit 1']
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
|
@ -32,7 +32,7 @@ services:
|
|||
- umami-db-data:/var/lib/postgresql/data:Z
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
|
||||
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue