]>
Commit | Line | Data |
---|---|---|
1 | version: "3.3" | |
2 | ||
3 | services: | |
4 | ||
5 | reverse-proxy: | |
6 | image: traefik:v1.7 | |
7 | network_mode: "host" | |
8 | command: --docker # Tells Træfik to listen to docker | |
9 | ports: | |
10 | - "80:80" # The HTTP port | |
11 | - "443:443" # The HTTPS port | |
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 | # If you want to use the Traefik dashboard, you should expose it on a | |
18 | # subdomain with HTTPS and authentification: | |
19 | # https://medium.com/@xavier.priour/secure-traefik-dashboard-with-https-and-password-in-docker-5b657e2aa15f | |
20 | # https://github.com/containous/traefik/issues/880#issuecomment-310301168 | |
21 | ||
22 | peertube: | |
23 | # If you don't want to use the official image and build one from sources | |
24 | # build: | |
25 | # context: . | |
26 | # dockerfile: ./support/docker/production/Dockerfile.buster | |
27 | image: chocobozzz/peertube:production-buster | |
28 | env_file: | |
29 | - .env | |
30 | # Traefik labels are suggested as an example for people using Traefik, | |
31 | # remove them if you are using another reverse proxy. | |
32 | labels: | |
33 | traefik.enable: "true" | |
34 | traefik.frontend.rule: "Host:${PEERTUBE_WEBSERVER_HOSTNAME}" | |
35 | traefik.port: "9000" | |
36 | # If you don't want to use a reverse proxy (not suitable for production!) | |
37 | # ports: | |
38 | # - "80:9000" | |
39 | volumes: | |
40 | - ./docker-volume/data:/data | |
41 | - ./docker-volume/config:/config | |
42 | depends_on: | |
43 | - postgres | |
44 | - redis | |
45 | - postfix | |
46 | restart: "always" | |
47 | ||
48 | postgres: | |
49 | image: postgres:10-alpine | |
50 | env_file: | |
51 | - .env | |
52 | volumes: | |
53 | - ./docker-volume/db:/var/lib/postgresql/data | |
54 | restart: "always" | |
55 | labels: | |
56 | traefik.enable: "false" | |
57 | ||
58 | redis: | |
59 | image: redis:4-alpine | |
60 | volumes: | |
61 | - ./docker-volume/redis:/data | |
62 | restart: "always" | |
63 | labels: | |
64 | traefik.enable: "false" | |
65 | ||
66 | postfix: | |
67 | image: mwader/postfix-relay | |
68 | env_file: | |
69 | - .env | |
70 | labels: | |
71 | traefik.enable: "false" | |
72 | restart: "always" | |
73 | ||
74 | networks: | |
75 | default: | |
76 | ipam: | |
77 | driver: default | |
78 | config: | |
79 | - subnet: 172.18.0.0/16 |