Use network_mode host to fix view counter

This commit is contained in:
Felix Ableitner 2019-04-20 16:09:27 +02:00
parent 32566cd3e4
commit d9b3846237
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,9 @@ services:
depends_on: depends_on:
- nginx - nginx
restart: "always" restart: "always"
# Required for view counter to work correctly
# https://github.com/Chocobozzz/PeerTube/issues/1643#issuecomment-464789666
network_mode: "host"
# If you want to use the Traefik dashboard, you should expose it on a # If you want to use the Traefik dashboard, you should expose it on a
# subdomain with HTTPS and authentification: # subdomain with HTTPS and authentification:
# https://medium.com/@xavier.priour/secure-traefik-dashboard-with-https-and-password-in-docker-5b657e2aa15f # https://medium.com/@xavier.priour/secure-traefik-dashboard-with-https-and-password-in-docker-5b657e2aa15f