diff options
Diffstat (limited to 'support')
-rw-r--r-- | support/doc/docker.md | 1 | ||||
-rw-r--r-- | support/docker/production/.env | 2 | ||||
-rw-r--r-- | support/docker/production/config/traefik.toml | 3 | ||||
-rw-r--r-- | support/docker/production/docker-compose.yml | 16 |
4 files changed, 18 insertions, 4 deletions
diff --git a/support/doc/docker.md b/support/doc/docker.md index cab336344..c20746486 100644 --- a/support/doc/docker.md +++ b/support/doc/docker.md | |||
@@ -63,7 +63,6 @@ Pull the latest images and rerun PeerTube: | |||
63 | 63 | ||
64 | ```shell | 64 | ```shell |
65 | $ cd /your/peertube/directory | 65 | $ cd /your/peertube/directory |
66 | $ docker-compose down | ||
67 | $ docker-compose pull | 66 | $ docker-compose pull |
68 | $ docker-compose up -d | 67 | $ docker-compose up -d |
69 | ``` | 68 | ``` |
diff --git a/support/docker/production/.env b/support/docker/production/.env index 4a649d655..f27def3b4 100644 --- a/support/docker/production/.env +++ b/support/docker/production/.env | |||
@@ -9,7 +9,7 @@ PEERTUBE_TRUST_PROXY=["127.0.0.1"] | |||
9 | #PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "192.168.1.0/24"] | 9 | #PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "192.168.1.0/24"] |
10 | PEERTUBE_SMTP_USERNAME= | 10 | PEERTUBE_SMTP_USERNAME= |
11 | PEERTUBE_SMTP_PASSWORD= | 11 | PEERTUBE_SMTP_PASSWORD= |
12 | PEERTUBE_SMTP_HOSTNAME= | 12 | PEERTUBE_SMTP_HOSTNAME=postfix |
13 | PEERTUBE_SMTP_PORT=25 | 13 | PEERTUBE_SMTP_PORT=25 |
14 | PEERTUBE_SMTP_FROM=noreply@domain.tld | 14 | PEERTUBE_SMTP_FROM=noreply@domain.tld |
15 | PEERTUBE_SMTP_TLS=true | 15 | PEERTUBE_SMTP_TLS=true |
diff --git a/support/docker/production/config/traefik.toml b/support/docker/production/config/traefik.toml index 882c95548..6abced3db 100644 --- a/support/docker/production/config/traefik.toml +++ b/support/docker/production/config/traefik.toml | |||
@@ -1,9 +1,12 @@ | |||
1 | # Uncomment this line in order to enable debugging through logs | 1 | # Uncomment this line in order to enable debugging through logs |
2 | # debug = true | 2 | # debug = true |
3 | defaultEntryPoints = ["http", "https"] | 3 | defaultEntryPoints = ["http", "https"] |
4 | |||
4 | [entryPoints] | 5 | [entryPoints] |
5 | [entryPoints.http] | 6 | [entryPoints.http] |
6 | address = ":80" | 7 | address = ":80" |
8 | [entryPoints.http.redirect] | ||
9 | entryPoint = "https" | ||
7 | [entryPoints.https] | 10 | [entryPoints.https] |
8 | address = ":443" | 11 | address = ":443" |
9 | [entryPoints.https.tls] | 12 | [entryPoints.https.tls] |
diff --git a/support/docker/production/docker-compose.yml b/support/docker/production/docker-compose.yml index 220c19fba..1b0a28ffb 100644 --- a/support/docker/production/docker-compose.yml +++ b/support/docker/production/docker-compose.yml | |||
@@ -4,16 +4,19 @@ services: | |||
4 | 4 | ||
5 | reverse-proxy: | 5 | reverse-proxy: |
6 | image: traefik | 6 | image: traefik |
7 | command: --api --docker # Enables the web UI and tells Træfik to listen to docker | 7 | command: --docker # Tells Træfik to listen to docker |
8 | ports: | 8 | ports: |
9 | - "80:80" # The HTTP port | 9 | - "80:80" # The HTTP port |
10 | - "443:443" # The HTTPS port | 10 | - "443:443" # The HTTPS port |
11 | - "8080:8080" # The Web UI (enabled by --api) | ||
12 | volumes: | 11 | volumes: |
13 | - /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events | 12 | - /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events |
14 | - ./docker-volume/traefik/acme.json:/etc/acme.json | 13 | - ./docker-volume/traefik/acme.json:/etc/acme.json |
15 | - ./docker-volume/traefik/traefik.toml:/traefik.toml | 14 | - ./docker-volume/traefik/traefik.toml:/traefik.toml |
16 | restart: "always" | 15 | restart: "always" |
16 | # If you want to use the Traefik dashboard, you should expose it on a | ||
17 | # subdomain with HTTPS and authentification: | ||
18 | # https://medium.com/@xavier.priour/secure-traefik-dashboard-with-https-and-password-in-docker-5b657e2aa15f | ||
19 | # https://github.com/containous/traefik/issues/880#issuecomment-310301168 | ||
17 | 20 | ||
18 | peertube: | 21 | peertube: |
19 | # If you don't want to use the official image and build one from sources | 22 | # If you don't want to use the official image and build one from sources |
@@ -38,6 +41,7 @@ services: | |||
38 | depends_on: | 41 | depends_on: |
39 | - postgres | 42 | - postgres |
40 | - redis | 43 | - redis |
44 | - postfix | ||
41 | restart: "always" | 45 | restart: "always" |
42 | 46 | ||
43 | postgres: | 47 | postgres: |
@@ -59,3 +63,11 @@ services: | |||
59 | restart: "always" | 63 | restart: "always" |
60 | labels: | 64 | labels: |
61 | traefik.enable: "false" | 65 | traefik.enable: "false" |
66 | |||
67 | postfix: | ||
68 | image: mwader/postfix-relay | ||
69 | environment: | ||
70 | - POSTFIX_myhostname=${PEERTUBE_WEBSERVER_HOSTNAME} | ||
71 | labels: | ||
72 | traefik.enable: "false" | ||
73 | restart: "always" | ||