Skip to content
Snippets Groups Projects
Commit 28e86c8f authored by Elian Loraux's avatar Elian Loraux
Browse files

fix traefik

parent 4cb5fced
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,9 @@ NAME=peertube
# Peertune secret
PEERTUBE_SECRET=
# Traefik fix ip (see docker-compose of traefik services)
TRAEFIK_IP=
# Database / Postgres service configuration
DB_USER=
DB_PASSWORD=
......
......@@ -8,7 +8,7 @@ services:
# General configuration
- PEERTUBE_SECRET=${PEERTUBE_SECRET}
- PEERTUBE_WEBSERVER_HOSTNAME=${HOST}
- PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "172.18.0.0/16"]
- PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "172.18.0.0/16", "${TRAEFIK_IP}"]
# Data base configuration
- PEERTUBE_DB_USERNAME=${DB_USER}
- PEERTUBE_DB_PASSWORD=${DB_PASSWORD}
......
......@@ -4,6 +4,7 @@ services:
peertube:
networks:
- traefik
- default
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment