Move configuration for custom port to Traefik config rather than custom container expose

Still a work-around for https://github.com/plausible/analytics/pull/237
This commit is contained in:
Jake Howard 2020-10-18 22:31:23 +01:00
parent 0ca3f36f7a
commit a46525aa80
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -8,11 +8,10 @@ services:
depends_on:
- db
- clickhouse
expose:
- 8000 # https://github.com/plausible/analytics/pull/237
labels:
- traefik.enable=true
- traefik.http.routers.plausible.rule=Host(`plausible.theorangeone.net`)
- traefik.http.services.plausible-plausible.loadbalancer.server.port=8000 # https://github.com/plausible/analytics/pull/237
- traefik.http.routers.plausible.tls.certresolver=le
- traefik.http.routers.plausible.middlewares=compress@file
environment: