mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
update docker-compose-swarm.yml
This commit is contained in:
parent
35a7bb9600
commit
2025bd8646
|
@ -29,7 +29,9 @@ services:
|
|||
networks:
|
||||
- seafile-net
|
||||
deploy:
|
||||
replicas: 1
|
||||
mode: replicated
|
||||
replicas: 4
|
||||
endpoint_mode: dnsrr
|
||||
|
||||
seahub-media:
|
||||
image: ggogel/seahub-media
|
||||
|
@ -39,7 +41,9 @@ services:
|
|||
networks:
|
||||
- seafile-net
|
||||
deploy:
|
||||
replicas: 1
|
||||
mode: replicated
|
||||
replicas: 2
|
||||
endpoint_mode: dnsrr
|
||||
|
||||
db:
|
||||
image: mariadb:latest
|
||||
|
@ -58,18 +62,20 @@ services:
|
|||
- seafile-net
|
||||
|
||||
seafile-caddy:
|
||||
image: ggogel/seafile-caddy:1.0.0
|
||||
image: ggogel/seafile-caddy:1.0.1
|
||||
environment:
|
||||
- SWARM_DNS=true
|
||||
networks:
|
||||
- seafile-net
|
||||
- caddy
|
||||
deploy:
|
||||
endpoint_mode: dnsrr # this enables caddy to see all IPs of service's replicas
|
||||
labels:
|
||||
caddy: http://seafile.gogel.me
|
||||
caddy.reverse_proxy: "{{upstreams 80}}"
|
||||
|
||||
networks:
|
||||
seafile-net:
|
||||
driver: overlay
|
||||
internal: true
|
||||
caddy:
|
||||
external: true
|
||||
|
|
Loading…
Reference in a new issue