diff options
Diffstat (limited to 'podman/podman-compose.yml')
| -rw-r--r-- | podman/podman-compose.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/podman/podman-compose.yml b/podman/podman-compose.yml new file mode 100644 index 0000000..fcd4b3a --- /dev/null +++ b/podman/podman-compose.yml @@ -0,0 +1,41 @@ +version: "3.8" + +services: + umami: + container_name: umami + image: ghcr.io/umami-software/umami:postgresql-latest + ports: + - "127.0.0.1:3000:3000" + environment: + DATABASE_URL: ${DATABASE_URL} + DATABASE_TYPE: ${DATABASE_TYPE} + APP_SECRET: ${APP_SECRET} + depends_on: + db: + condition: service_healthy + init: true + restart: always + healthcheck: + test: ["CMD-SHELL", "curl -f http://localhost:3000/api/heartbeat || exit 1"] + interval: 5s + timeout: 5s + retries: 5 + + db: + container_name: umami-db + image: docker.io/library/postgres:15-alpine + environment: + POSTGRES_DB: ${POSTGRES_DB} + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + volumes: + - umami-db-data:/var/lib/postgresql/data:Z + restart: always + healthcheck: + test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] + interval: 5s + timeout: 5s + retries: 5 + +volumes: + umami-db-data: |