first commit
This commit is contained in:
commit
3ca46c9ea2
19 changed files with 958 additions and 0 deletions
10
demo/config.yml
Normal file
10
demo/config.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
http:
|
||||
middlewares:
|
||||
umami:
|
||||
plugin:
|
||||
umami-feeder:
|
||||
debug: true
|
||||
umamiHost: http://umami:3000
|
||||
umamiUsername: "admin"
|
||||
umamiPassword: "umami"
|
||||
createNewWebsites: true
|
||||
70
demo/docker-compose.yml
Normal file
70
demo/docker-compose.yml
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
services:
|
||||
traefik:
|
||||
image: traefik:3
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.traefik.service=api@internal"
|
||||
- "traefik.http.routers.traefik.rule=Host(`localhost`)"
|
||||
- "traefik.http.routers.traefik.entrypoints=traefik"
|
||||
networks:
|
||||
- traefik
|
||||
ports:
|
||||
- target: 8080
|
||||
published: 8080
|
||||
protocol: tcp
|
||||
- target: 8081
|
||||
published: 8081
|
||||
protocol: tcp
|
||||
volumes:
|
||||
# So that Traefik can listen to the Docker events
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
# To persist ACME data (certificates, account, etc)
|
||||
- ./traefik.yml:/traefik.yml:ro
|
||||
- ./config.yml:/config/config.yml:ro
|
||||
# mount plugin
|
||||
- ../:/plugins-local/src/github.com/astappiev/traefik-umami-feeder
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
whoami:
|
||||
image: containous/whoami
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.whoami.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.whoami.service=whoami"
|
||||
- "traefik.http.routers.whoami.rule=Host(`localhost`)"
|
||||
- "traefik.http.routers.whoami.entrypoints=whoami"
|
||||
# middleware
|
||||
- "traefik.http.routers.whoami.middlewares=umami@file"
|
||||
|
||||
networks:
|
||||
- traefik
|
||||
|
||||
umami:
|
||||
image: ghcr.io/umami-software/umami:postgresql-latest
|
||||
depends_on:
|
||||
- postgres
|
||||
environment:
|
||||
- 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
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
umami_postgres:
|
||||
30
demo/traefik.yml
Normal file
30
demo/traefik.yml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
log:
|
||||
level: INFO
|
||||
|
||||
# accessLog: {}
|
||||
|
||||
providers:
|
||||
docker:
|
||||
endpoint: "unix:///var/run/docker.sock"
|
||||
exposedByDefault: false
|
||||
network: traefik
|
||||
watch: true
|
||||
file:
|
||||
directory: /config
|
||||
watch: true
|
||||
|
||||
entryPoints:
|
||||
"traefik": # traefik dashboard
|
||||
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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue