1
0
Fork 0
peertube/support/doc/docker-traefik.md
Kimsible 8872828d59
add client overrides to nginx configuration (#3297)
Co-authored-by: Rigel Kent <par@rigelk.eu>
Co-authored-by: kimsible <kimsible@users.noreply.github.com>
2020-11-16 10:34:05 +01:00

1.3 KiB

Docker + Traefik

After following the docker guide, you can choose to run traefik as your reverse-proxy.

Create the reverse proxy configuration directory

mkdir -p ./docker-volume/traefik

Get the latest reverse proxy configuration

curl https://raw.githubusercontent.com/chocobozzz/PeerTube/master/support/docker/production/config/traefik.toml > ./docker-volume/traefik/traefik.toml

View the source of the file you're about to download: traefik.toml

Create Let's Encrypt ACME certificates as JSON file

touch ./docker-volume/traefik/acme.json

Needs to have file mode 600:

chmod 600 ./docker-volume/traefik/acme.json

Update the reverse proxy configuration

$EDITOR ./docker-volume/traefik/traefik.toml

You must replace <MY EMAIL ADDRESS> and <MY DOMAIN> to enable Let's Encrypt SSL Certificates creation. Now included in .env file with TRAEFIK_ACME_EMAIL and TRAEFIK_ACME_DOMAINS variables used through traefik service command value of docker-compose.yml file.

More at: https://docs.traefik.io/v1.7

Run with traefik

docker-compose -f docker-compose.yml -f docker-compose.traefik.yml up -d