edec0d0ca4
* feat(pairdrop): change config to support local domain * feat(paperless-ngx): change config to support local domain * feat(peppermint): change config to support local domain * feat(photoprism): change config to support local domain * feat(pihole): change config to support local domain * feat(plausible): change config to support local domain * feat(plex): change config to support local domain * feat(podfetch): change config to support local domain * feat(portainer): change config to support local domain * feat(privatebin): change config to support local domain * feat(prowlarr): change config to support local domain * feat(proxitok): change config to support local domain * feat(qbittorrent): change config to support local domain * feat(radarr): change config to support local domain * feat(readarr): change config to support local domain * feat(resilio-sync): change config to support local domain * feat(romm): change config to support local domain * feat(rss): change config to support local domain * feat(sabnzbd): change config to support local domain * feat(searxng): change config to support local domain * feat(send): change config to support local domain * feat(simplex-smp): change config to support local domain * feat(sonarr): change config to support local domain * feat(syncthing): change config to support local domain * feat(tasks-md): change config to support local domain * feat(tautulli): change config to support local domain * feat(teddit): change config to support local domain * feat(transmission): change config to support local domain * feat(tubearchivist): change config to support local domain * feat(umami): change config to support local domain * feat(uptime-kuma): change config to support local domain * feat(vaultwarden): change config to support local domain * feat(vikunja): change config to support local domain * feat(wg-easy): change config to support local domain * feat(wikijs): change config to support local domain * feat(wizarr): change config to support local domain * feat(your-spotify): change config to support local domain * chore: labels formatting issues
76 lines
3.0 KiB
YAML
76 lines
3.0 KiB
YAML
version: "3.7"
|
|
services:
|
|
plausible:
|
|
container_name: plausible
|
|
image: plausible/analytics:v1.5.1
|
|
restart: always
|
|
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run"
|
|
depends_on:
|
|
- plausible-db
|
|
- plausible-events-db
|
|
ports:
|
|
- ${APP_PORT}:8000
|
|
environment:
|
|
- BASE_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN}
|
|
- SECRET_KEY_BASE=${PLAUSIBLE_SECRET_KEY_BASE}
|
|
- DATABASE_URL=postgres://tipi:${PLAUSIBLE_DB_PASSWORD}@plausible-db:5432/plausible-db
|
|
- CLICKHOUSE_DATABASE_URL=http://plausible-events-db:8123/plausible_events_db
|
|
- DISABLE_REGISTRATION=${PLAUSIBLE_DISABLE_REGISTRATION}
|
|
networks:
|
|
- tipi_main_network
|
|
labels:
|
|
# Main
|
|
traefik.enable: true
|
|
traefik.http.middlewares.plausible-web-redirect.redirectscheme.scheme: https
|
|
traefik.http.services.plausible.loadbalancer.server.port: 8000
|
|
# Web
|
|
traefik.http.routers.plausible-insecure.rule: Host(`${APP_DOMAIN}`)
|
|
traefik.http.routers.plausible-insecure.entrypoints: web
|
|
traefik.http.routers.plausible-insecure.service: plausible
|
|
traefik.http.routers.plausible-insecure.middlewares: plausible-web-redirect
|
|
# Websecure
|
|
traefik.http.routers.plausible.rule: Host(`${APP_DOMAIN}`)
|
|
traefik.http.routers.plausible.entrypoints: websecure
|
|
traefik.http.routers.plausible.service: plausible
|
|
traefik.http.routers.plausible.tls.certresolver: myresolver
|
|
# Local domain
|
|
traefik.http.routers.plausible-local-insecure.rule: Host(`plausible.${LOCAL_DOMAIN}`)
|
|
traefik.http.routers.plausible-local-insecure.entrypoints: web
|
|
traefik.http.routers.plausible-local-insecure.service: plausible
|
|
traefik.http.routers.plausible-local-insecure.middlewares: plausible-web-redirect
|
|
# Local domain secure
|
|
traefik.http.routers.plausible-local.rule: Host(`plausible.${LOCAL_DOMAIN}`)
|
|
traefik.http.routers.plausible-local.entrypoints: websecure
|
|
traefik.http.routers.plausible-local.service: plausible
|
|
traefik.http.routers.plausible-local.tls: true
|
|
|
|
plausible-db:
|
|
# supported versions are 12, 13, and 14
|
|
image: postgres:14-alpine
|
|
container_name: plausible-db
|
|
restart: always
|
|
networks:
|
|
- tipi_main_network
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/database/:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_PASSWORD=${PLAUSIBLE_DB_PASSWORD}
|
|
- POSTGRES_USER=tipi
|
|
- POSTGRES_DB=plausible-db
|
|
|
|
plausible-events-db:
|
|
container_name: plausible-events-db
|
|
image: clickhouse/clickhouse-server:22.6-alpine
|
|
restart: always
|
|
networks:
|
|
- tipi_main_network
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/plausible-event-data:/var/lib/clickhouse
|
|
- ${APP_DATA_DIR}/data/clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
|
|
- ${APP_DATA_DIR}/data/clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro
|
|
ulimits:
|
|
nofile:
|
|
soft: 262144
|
|
hard: 262144
|
|
|