From d9b38462374aac1ba3ba5d99dd03e61ee1e22353 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Sat, 20 Apr 2019 16:09:27 +0200 Subject: [PATCH] Use network_mode host to fix view counter --- templates/docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/docker-compose.yml b/templates/docker-compose.yml index d303c27..a28865e 100644 --- a/templates/docker-compose.yml +++ b/templates/docker-compose.yml @@ -15,6 +15,9 @@ services: depends_on: - nginx 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 # subdomain with HTTPS and authentification: # https://medium.com/@xavier.priour/secure-traefik-dashboard-with-https-and-password-in-docker-5b657e2aa15f