[README] Update example for jwilder/nginx-proxy

Using `jwilder/nginx-proxy` with this setup works, but required me
change the `caddy` service a bit. This commit updates the example.
Furthermore, I had renamed some services which did not work.
It took a while until I found out that service names, were hard-coded.
This commit is contained in:
Andre Meyering 2021-06-09 10:50:17 +02:00 committed by GitHub
parent 367cfcfd85
commit 915f3a2d80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,6 +84,9 @@ Networks:
``` ```
wget https://raw.githubusercontent.com/ggogel/seafile-containerized/master/compose/docker-compose.yml wget https://raw.githubusercontent.com/ggogel/seafile-containerized/master/compose/docker-compose.yml
``` ```
_Note:_ We expect certain services names. Do not rename services except `db`.
#### Docker Swarm #### Docker Swarm
If you run a single node swarm and don't want to run multiple replicas, you can use the same compose file. Otherwise refer to [Additional Information / Docker Swarm](#Docker-Swarm-1). If you run a single node swarm and don't want to run multiple replicas, you can use the same compose file. Otherwise refer to [Additional Information / Docker Swarm](#Docker-Swarm-1).
@ -201,12 +204,14 @@ 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:1.0.4
ports: expose:
80:80 - "80"
networks: networks:
- seafile-net - seafile-net
- default
environment: environment:
- VIRTUAL_PORT=80
- VIRTUAL_HOST=seafile.mydomain.com - VIRTUAL_HOST=seafile.mydomain.com
``` ```