diff --git a/docker/images/docker-compose.yaml b/docker/images/docker-compose.yaml index aa215f36cd..63caa5d00a 100644 --- a/docker/images/docker-compose.yaml +++ b/docker/images/docker-compose.yaml @@ -52,7 +52,7 @@ services: ## penpot to the internet, or a different host than `localhost`. # traefik: - # image: traefik:v2.9 + # image: traefik:v3.3 # networks: # - penpot # command: @@ -88,28 +88,15 @@ services: - penpot labels: - - "traefik.enable=true" + # - "traefik.enable=true" - ## HTTP: example of labels for the case where penpot will be exposed to the - ## internet with only HTTP (without HTTPS) using traefik. + # ## HTTPS: example of labels for the case where penpot will be exposed to the + # ## internet with HTTPS using traefik. - # - "traefik.http.routers.penpot-http.entrypoints=web" - # - "traefik.http.routers.penpot-http.rule=Host(``)" - # - "traefik.http.services.penpot-http.loadbalancer.server.port=80" - - ## HTTPS: example of labels for the case where penpot will be exposed to the - ## internet with HTTPS using traefik. - - # - "traefik.http.middlewares.http-redirect.redirectscheme.scheme=https" - # - "traefik.http.middlewares.http-redirect.redirectscheme.permanent=true" - # - "traefik.http.routers.penpot-http.entrypoints=web" - # - "traefik.http.routers.penpot-http.rule=Host(``)" - # - "traefik.http.routers.penpot-http.middlewares=http-redirect" - # - "traefik.http.routers.penpot-https.entrypoints=websecure" # - "traefik.http.routers.penpot-https.rule=Host(``)" - # - "traefik.http.services.penpot-https.loadbalancer.server.port=80" - # - "traefik.http.routers.penpot-https.tls=true" + # - "traefik.http.routers.penpot-https.entrypoints=websecure" # - "traefik.http.routers.penpot-https.tls.certresolver=letsencrypt" + # - "traefik.http.routers.penpot-https.tls=true" environment: << : [*penpot-flags, *penpot-http-body-size] @@ -130,8 +117,7 @@ services: networks: - penpot - ## Configuration envronment variables for the backend - ## container. + ## Configuration envronment variables for the backend container. environment: << : [*penpot-flags, *penpot-public-uri, *penpot-http-body-size] diff --git a/docs/technical-guide/getting-started/docker.md b/docs/technical-guide/getting-started/docker.md index 118e857236..5b6e579931 100644 --- a/docs/technical-guide/getting-started/docker.md +++ b/docs/technical-guide/getting-started/docker.md @@ -200,6 +200,8 @@ server { } ``` +For full documentation, go to the [official website][2] + ### Example with CADDY SERVER ```bash @@ -212,4 +214,15 @@ penpot.mycompany.com { } ``` +For full documentation, go to the [official website][3] + +### Example with TRAEFIK + +In the [Penpot's docker-compose.yaml][4] file, there is a simple example with Traefik. +For full documentation, go to the [official website][5] + [1]: /technical-guide/configuration/ +[2]: https://nginx.org/en/docs/index.html +[3]: https://caddyserver.com/docs/ +[4]: https://github.com/penpot/penpot/blob/develop/docker/images/docker-compose.yaml +[5]: https://doc.traefik.io/traefik/