app-store/apps/umami/docker-compose.yml

38 lines
1.0 KiB
YAML
Raw Normal View History

version: '3.7'
2023-02-28 08:46:07 +00:00
services:
umami:
container_name: umami
2023-02-28 08:46:07 +00:00
image: ghcr.io/umami-software/umami:postgresql-v1.40.0
ports:
- '${APP_PORT}:3000'
2023-02-28 08:46:07 +00:00
environment:
DATABASE_URL: postgresql://umami:${DB_PASSWORD}@umami-db:5432/umami
2023-02-28 08:46:07 +00:00
DATABASE_TYPE: postgresql
HASH_SALT: ${HASH_SALT}
depends_on:
- umami-db
restart: always
networks:
- tipi_main_network
labels:
traefik.enable: ${APP_EXPOSED}
traefik.http.routers.umami.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.umami.entrypoints: websecure
traefik.http.routers.umami.service: umami
traefik.http.routers.umami.tls.certresolver: myresolver
traefik.http.services.umami.loadbalancer.server.port: 3000
2023-02-28 08:46:07 +00:00
umami-db:
container_name: umami-db
2023-02-28 08:46:07 +00:00
image: postgres:12-alpine
environment:
POSTGRES_DB: umami
POSTGRES_USER: umami
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
restart: always
networks:
- tipi_main_network