diff options
Diffstat (limited to 'support/docker/production/docker-compose.yml')
-rw-r--r-- | support/docker/production/docker-compose.yml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/support/docker/production/docker-compose.yml b/support/docker/production/docker-compose.yml index ee1d29853..eefd6e5bb 100644 --- a/support/docker/production/docker-compose.yml +++ b/support/docker/production/docker-compose.yml | |||
@@ -9,9 +9,9 @@ services: | |||
9 | # dockerfile: ./support/docker/production/Dockerfile.stretch | 9 | # dockerfile: ./support/docker/production/Dockerfile.stretch |
10 | image: chocobozzz/peertube:production-stretch | 10 | image: chocobozzz/peertube:production-stretch |
11 | environment: | 11 | environment: |
12 | PEERTUBE_HOSTNAME: my.domain.tld | 12 | PEERTUBE_WEBSERVER_HOSTNAME: my.domain.tld |
13 | PEERTUBE_PORT: 443 | 13 | PEERTUBE_WEBSERVER_PORT: 443 |
14 | PEERTUBE_HTTPS: "true" | 14 | PEERTUBE_WEBSERVER_HTTPS: "true" |
15 | PEERTUBE_ADMIN_EMAIL: admin@domain.tld | 15 | PEERTUBE_ADMIN_EMAIL: admin@domain.tld |
16 | PEERTUBE_DB_HOSTNAME: postgres | 16 | PEERTUBE_DB_HOSTNAME: postgres |
17 | PEERTUBE_DB_USERNAME: postgres_user | 17 | PEERTUBE_DB_USERNAME: postgres_user |
@@ -27,13 +27,14 @@ services: | |||
27 | # remove them if you are using another reverse proxy. | 27 | # remove them if you are using another reverse proxy. |
28 | labels: | 28 | labels: |
29 | traefik.enable: "true" | 29 | traefik.enable: "true" |
30 | traefik.frontend.rule: "Host:${PEERTUBE_HOSTNAME}" | 30 | traefik.frontend.rule: "Host:${PEERTUBE_WEBSERVER_HOSTNAME}" |
31 | traefik.port: "9000" | 31 | traefik.port: "9000" |
32 | # If you don't want to use a reverse proxy (not suitable for production!) | 32 | # If you don't want to use a reverse proxy (not suitable for production!) |
33 | # ports: | 33 | # ports: |
34 | # - "80:9000" | 34 | # - "80:9000" |
35 | volumes: | 35 | volumes: |
36 | - ./data:/data | 36 | - ./docker-volume/data:/data |
37 | - ./docker-volume/config:/config | ||
37 | depends_on: | 38 | depends_on: |
38 | - postgres | 39 | - postgres |
39 | - redis | 40 | - redis |
@@ -46,11 +47,11 @@ services: | |||
46 | POSTGRES_PASSWORD: postgres_password | 47 | POSTGRES_PASSWORD: postgres_password |
47 | POSTGRES_DB: peertube | 48 | POSTGRES_DB: peertube |
48 | volumes: | 49 | volumes: |
49 | - ./db:/var/lib/postgresql/data | 50 | - ./docker-volume/db:/var/lib/postgresql/data |
50 | restart: "always" | 51 | restart: "always" |
51 | 52 | ||
52 | redis: | 53 | redis: |
53 | image: redis:4-alpine | 54 | image: redis:4-alpine |
54 | volumes: | 55 | volumes: |
55 | - ./redis:/data | 56 | - ./docker-volume/redis:/data |
56 | restart: "always" | 57 | restart: "always" |