Update README.md

This commit is contained in:
Gerrit Gogel 2021-01-23 20:21:54 +01:00
parent 45ac3b5a63
commit 15a2b4b6e5

View file

@ -112,7 +112,7 @@ Networks:
``` ```
- HTTPS=false - HTTPS=false
``` ```
### *db* ### *db*
Password of the mariadb root user. Must match DB_ROOT_PASSWD. Password of the mariadb root user. Must match DB_ROOT_PASSWD.
``` ```
@ -175,26 +175,26 @@ Networks:
Example for [jwilder/nginx-proxy](https://github.com/nginx-proxy/nginx-proxy) Example for [jwilder/nginx-proxy](https://github.com/nginx-proxy/nginx-proxy)
``` ```
seafile-caddy: seafile-caddy:
image: ggogel/seafile-caddy:0.1 image: ggogel/seafile-caddy:0.1
ports: ports:
80:80 80:80
networks: networks:
- seafile-net - seafile-net
environment: environment:
- VIRTUAL_HOST=seafile.mydomain.com - VIRTUAL_HOST=seafile.mydomain.com
``` ```
Example for [lucaslorentz/caddy-docker-proxy](https://manual.seafile.com/docker/deploy%20seafile%20with%20docker/) on Docker Swarm Example for [lucaslorentz/caddy-docker-proxy](https://manual.seafile.com/docker/deploy%20seafile%20with%20docker/) on Docker Swarm
``` ```
seafile-caddy: seafile-caddy:
image: ggogel/seafile-caddy:0.1 image: ggogel/seafile-caddy:0.1
networks: networks:
- seafile-net - seafile-net
- caddy - caddy
deploy: deploy:
labels: labels:
caddy: seafile.mydomain.com #this will automatically enable https and Let's Encrypt caddy: seafile.mydomain.com #this will automatically enable https and Let's Encrypt
caddy.reverse_proxy: "{{upstreams 80}}" caddy.reverse_proxy: "{{upstreams 80}}"
``` ```
Note that you don't need the ports definition any longer with this reverse proxy, because it connects to the service through its own network. Note that you don't need the ports definition any longer with this reverse proxy, because it connects to the service through its own network.