Add configuration for Traefik 2

This commit is contained in:
MoryCorp 2020-10-30 00:33:03 +01:00 committed by GitHub
parent 09fb07ef60
commit f4af8922c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -28,9 +28,15 @@ services:
- plausible_events_db
- mail
ports:
- 80:8000
- 80:8000 #Remove this line if you plan to use Traefik
env_file:
- plausible-conf.env
labels:
# Uncomment line below if you plan to use Traefik
# - "traefik.enable=true"
# - "traefik.http.routers.plausible.rule=Host(`yourdomain.com`)" # replace this with your own domain
# - "traefik.http.routers.plausible.entrypoints=websecure"
# - "traefik.http.services.plausible.loadbalancer.server.port=8000"
volumes:
db-data: