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:
|
networks:
|
||||||
- seafile-net
|
- seafile-net
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
mode: replicated
|
||||||
|
replicas: 4
|
||||||
|
endpoint_mode: dnsrr
|
||||||
|
|
||||||
seahub-media:
|
seahub-media:
|
||||||
image: ggogel/seahub-media
|
image: ggogel/seahub-media
|
||||||
|
@ -39,7 +41,9 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- seafile-net
|
- seafile-net
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
mode: replicated
|
||||||
|
replicas: 2
|
||||||
|
endpoint_mode: dnsrr
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mariadb:latest
|
image: mariadb:latest
|
||||||
|
@ -58,18 +62,20 @@ services:
|
||||||
- seafile-net
|
- seafile-net
|
||||||
|
|
||||||
seafile-caddy:
|
seafile-caddy:
|
||||||
image: ggogel/seafile-caddy:1.0.0
|
image: ggogel/seafile-caddy:1.0.1
|
||||||
|
environment:
|
||||||
|
- SWARM_DNS=true
|
||||||
networks:
|
networks:
|
||||||
- seafile-net
|
- seafile-net
|
||||||
- caddy
|
- caddy
|
||||||
deploy:
|
deploy:
|
||||||
endpoint_mode: dnsrr # this enables caddy to see all IPs of service's replicas
|
|
||||||
labels:
|
labels:
|
||||||
caddy: http://seafile.gogel.me
|
caddy: http://seafile.gogel.me
|
||||||
caddy.reverse_proxy: "{{upstreams 80}}"
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
seafile-net:
|
seafile-net:
|
||||||
|
driver: overlay
|
||||||
internal: true
|
internal: true
|
||||||
caddy:
|
caddy:
|
||||||
external: true
|
external: true
|
||||||
|
|
Loading…
Reference in a new issue