Improve docker-compose/traefik config
This commit is contained in:
parent
0c33d181cd
commit
a5d7c42f7b
2 changed files with 7 additions and 12 deletions
|
@ -9,7 +9,7 @@ services:
|
||||||
- "80:80" # The HTTP port
|
- "80:80" # The HTTP port
|
||||||
- "443:443" # The HTTPS port
|
- "443:443" # The HTTPS port
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- ./volumes/traefik/acme.json:/etc/acme.json
|
- ./volumes/traefik/acme.json:/etc/acme.json
|
||||||
- ./traefik.toml:/traefik.toml
|
- ./traefik.toml:/traefik.toml
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -28,9 +28,9 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "true"
|
- traefik.enable=true
|
||||||
traefik.frontend.rule: "Host:${PEERTUBE_WEBSERVER_HOSTNAME}"
|
- traefik.frontend.rule=Host:${PEERTUBE_WEBSERVER_HOSTNAME}
|
||||||
traefik.port: "9000"
|
- traefik.port=9000
|
||||||
depends_on:
|
depends_on:
|
||||||
- peertube
|
- peertube
|
||||||
restart: "always"
|
restart: "always"
|
||||||
|
|
|
@ -26,13 +26,6 @@ defaultEntryPoints = ["http", "https"]
|
||||||
"TLS_RSA_WITH_AES_256_GCM_SHA384",
|
"TLS_RSA_WITH_AES_256_GCM_SHA384",
|
||||||
"TLS_RSA_WITH_AES_256_CBC_SHA"
|
"TLS_RSA_WITH_AES_256_CBC_SHA"
|
||||||
]
|
]
|
||||||
FrameDeny = false # here we don't want to deny frames since we have an embed
|
|
||||||
STSIncludeSubdomains = true
|
|
||||||
STSSeconds = 315360000
|
|
||||||
STSPreload = true
|
|
||||||
ContentTypeNosniff = true
|
|
||||||
BrowserXssFilter = true
|
|
||||||
|
|
||||||
|
|
||||||
# Enable ACME (Let's Encrypt): automatic SSL.
|
# Enable ACME (Let's Encrypt): automatic SSL.
|
||||||
[acme]
|
[acme]
|
||||||
|
@ -75,4 +68,6 @@ entryPoint = "https"
|
||||||
entryPoint = "http"
|
entryPoint = "http"
|
||||||
|
|
||||||
[docker]
|
[docker]
|
||||||
exposedByDefault = false
|
endpoint = "unix:///var/run/docker.sock"
|
||||||
|
watch = true
|
||||||
|
exposedbydefault = false
|
||||||
|
|
Loading…
Reference in a new issue