Implement Rybbit changes
This commit is contained in:
parent
8d7198941f
commit
6def58012a
14 changed files with 142 additions and 345 deletions
|
|
@ -1,11 +1,11 @@
|
|||
http:
|
||||
middlewares:
|
||||
umami:
|
||||
rybbit:
|
||||
plugin:
|
||||
umami-feeder:
|
||||
rybbit-feeder:
|
||||
debug: true
|
||||
umamiHost: http://umami:3000
|
||||
umamiUsername: "admin"
|
||||
umamiPassword: "umami"
|
||||
umamiTeamId: "8e39c6ad-e44a-4d3e-be98-015db2d62d40"
|
||||
createNewWebsites: true
|
||||
host: https://rybbit.mysite.com
|
||||
apiKey: rb_a0938f333a88239c6250c2c3707a
|
||||
websites:
|
||||
"localhost": "1"
|
||||
batchSize: 1
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
services:
|
||||
traefik:
|
||||
image: traefik:3
|
||||
depends_on:
|
||||
- umami
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.traefik.service=api@internal"
|
||||
|
|
@ -24,7 +22,7 @@ services:
|
|||
- ./traefik.yml:/traefik.yml:ro
|
||||
- ./config.yml:/config/config.yml:ro
|
||||
# mount plugin
|
||||
- ../:/plugins-local/src/github.com/astappiev/traefik-umami-feeder
|
||||
- ../:/plugins-local/src/github.com/foxxmd/traefik-rybbit-feeder
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
|
|
@ -32,7 +30,7 @@ services:
|
|||
image: containous/whoami
|
||||
ports:
|
||||
- target: 80
|
||||
published: 80
|
||||
published: 7654
|
||||
protocol: tcp
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
|
|
@ -41,44 +39,10 @@ services:
|
|||
- "traefik.http.routers.whoami.rule=Host(`localhost`)"
|
||||
- "traefik.http.routers.whoami.entrypoints=whoami"
|
||||
# middleware
|
||||
- "traefik.http.routers.whoami.middlewares=umami@file"
|
||||
- "traefik.http.routers.whoami.middlewares=rybbit@file"
|
||||
|
||||
networks:
|
||||
- traefik
|
||||
|
||||
umami:
|
||||
image: ghcr.io/umami-software/umami:postgresql-latest
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- DEBUG=umami:middleware
|
||||
- ENABLE_TEST_CONSOLE=1
|
||||
- DATABASE_URL=postgres://umami:umami@postgres:5432/umami
|
||||
ports:
|
||||
- target: 3000
|
||||
published: 3000
|
||||
protocol: tcp
|
||||
networks:
|
||||
- traefik
|
||||
- umami_postgres
|
||||
|
||||
postgres:
|
||||
image: postgres:16
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=umami
|
||||
- POSTGRES_DB=umami
|
||||
- POSTGRES_USER=umami
|
||||
networks:
|
||||
- umami_postgres
|
||||
volumes:
|
||||
- ./postgres:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'" ]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
umami_postgres:
|
||||
name: traefik
|
||||
|
|
|
|||
|
|
@ -18,13 +18,11 @@ entryPoints:
|
|||
address: ":8080"
|
||||
"whoami": # http
|
||||
address: ":8081"
|
||||
"umami": # umami dashboard
|
||||
address: ":3000"
|
||||
|
||||
api:
|
||||
dashboard: true
|
||||
|
||||
experimental:
|
||||
localPlugins:
|
||||
umami-feeder:
|
||||
moduleName: "github.com/astappiev/traefik-umami-feeder"
|
||||
rybbit-feeder:
|
||||
moduleName: "github.com/foxxmd/traefik-rybbit-feeder"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue