diff options
Diffstat (limited to 'support/docker/production/docker-compose.yml')
-rw-r--r-- | support/docker/production/docker-compose.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/support/docker/production/docker-compose.yml b/support/docker/production/docker-compose.yml index eefd6e5bb..5f8822ad3 100644 --- a/support/docker/production/docker-compose.yml +++ b/support/docker/production/docker-compose.yml | |||
@@ -2,6 +2,19 @@ version: "3.3" | |||
2 | 2 | ||
3 | services: | 3 | services: |
4 | 4 | ||
5 | reverse-proxy: | ||
6 | image: traefik | ||
7 | command: --api --docker # Enables the web UI and tells Træfik to listen to docker | ||
8 | ports: | ||
9 | - "80:80" # The HTTP port | ||
10 | - "443:443" # The HTTPS port | ||
11 | - "8080:8080" # The Web UI (enabled by --api) | ||
12 | volumes: | ||
13 | - /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 | ||
15 | - ./docker-volume/traefik/traefik.toml:/traefik.toml | ||
16 | restart: "always" | ||
17 | |||
5 | peertube: | 18 | peertube: |
6 | # If you don't want to use the official image and build one from sources | 19 | # If you don't want to use the official image and build one from sources |
7 | # build: | 20 | # build: |
@@ -49,9 +62,13 @@ services: | |||
49 | volumes: | 62 | volumes: |
50 | - ./docker-volume/db:/var/lib/postgresql/data | 63 | - ./docker-volume/db:/var/lib/postgresql/data |
51 | restart: "always" | 64 | restart: "always" |
65 | labels: | ||
66 | traefik.enable: "false" | ||
52 | 67 | ||
53 | redis: | 68 | redis: |
54 | image: redis:4-alpine | 69 | image: redis:4-alpine |
55 | volumes: | 70 | volumes: |
56 | - ./docker-volume/redis:/data | 71 | - ./docker-volume/redis:/data |
57 | restart: "always" | 72 | restart: "always" |
73 | labels: | ||
74 | traefik.enable: "false" \ No newline at end of file | ||