]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - support/docker/production/docker-compose.yml
Fix docker-compose setup so Peertube sees correct IP
[github/Chocobozzz/PeerTube.git] / support / docker / production / docker-compose.yml
index 1b0a28ffb8e5beb4bb24038e2058d056706bc08a..263fb6e951be3ecacd560769ecbbde60fcf776e3 100644 (file)
@@ -4,6 +4,7 @@ services:
 
   reverse-proxy:
     image: traefik
+    network_mode: "host"
     command: --docker # Tells Træfik to listen to docker
     ports:
       - "80:80"     # The HTTP port
@@ -13,7 +14,7 @@ services:
       - ./docker-volume/traefik/acme.json:/etc/acme.json
       - ./docker-volume/traefik/traefik.toml:/traefik.toml
     restart: "always"
-    # 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:
     # https://medium.com/@xavier.priour/secure-traefik-dashboard-with-https-and-password-in-docker-5b657e2aa15f
     # https://github.com/containous/traefik/issues/880#issuecomment-310301168
@@ -71,3 +72,10 @@ services:
     labels:
       traefik.enable: "false"
     restart: "always"
+
+networks:
+  default:
+    ipam:
+      driver: default
+      config:
+      - subnet:  172.18.0.0/16