2023-03-11 15:27:45 +00:00
|
|
|
version: '3.7'
|
2023-02-28 08:46:07 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
umami:
|
2023-03-11 15:27:45 +00:00
|
|
|
container_name: umami
|
2023-02-28 08:46:07 +00:00
|
|
|
image: ghcr.io/umami-software/umami:postgresql-v1.40.0
|
|
|
|
ports:
|
2023-03-11 15:27:45 +00:00
|
|
|
- '${APP_PORT}:3000'
|
2023-02-28 08:46:07 +00:00
|
|
|
environment:
|
2023-03-11 15:27:45 +00:00
|
|
|
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:
|
2023-06-18 16:02:29 +00:00
|
|
|
# Main
|
|
|
|
traefik.enable: true
|
|
|
|
traefik.http.middlewares.umami-web-redirect.redirectscheme.scheme: https
|
|
|
|
traefik.http.services.umami.loadbalancer.server.port: 3000
|
|
|
|
# Web
|
|
|
|
traefik.http.routers.umami-insecure.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.umami-insecure.entrypoints: web
|
|
|
|
traefik.http.routers.umami-insecure.service: umami
|
|
|
|
traefik.http.routers.umami-insecure.middlewares: umami-web-redirect
|
|
|
|
# Websecure
|
2023-02-28 08:46:07 +00:00
|
|
|
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
|
2023-06-18 16:02:29 +00:00
|
|
|
# Local domain
|
|
|
|
traefik.http.routers.umami-local-insecure.rule: Host(`umami.${LOCAL_DOMAIN}`)
|
|
|
|
traefik.http.routers.umami-local-insecure.entrypoints: web
|
|
|
|
traefik.http.routers.umami-local-insecure.service: umami
|
|
|
|
traefik.http.routers.umami-local-insecure.middlewares: umami-web-redirect
|
|
|
|
# Local domain secure
|
|
|
|
traefik.http.routers.umami-local.rule: Host(`umami.${LOCAL_DOMAIN}`)
|
|
|
|
traefik.http.routers.umami-local.entrypoints: websecure
|
|
|
|
traefik.http.routers.umami-local.service: umami
|
|
|
|
traefik.http.routers.umami-local.tls: true
|
2023-03-11 15:27:45 +00:00
|
|
|
|
2023-02-28 08:46:07 +00:00
|
|
|
umami-db:
|
2023-03-11 15:27:45 +00:00
|
|
|
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
|