Refactor Docker and Kubernetes configurations to add Redis volume mapping and constraints for Docmost and Outline services

This commit is contained in:
2024-07-31 16:53:30 +08:00
parent 179f618469
commit 4380cf28e7
2 changed files with 14 additions and 6 deletions
+7 -1
View File
@@ -1,3 +1,6 @@
volumes:
docmost_redis_data: {}
networks:
net:
driver: overlay
@@ -21,11 +24,14 @@ services:
restart: unless-stopped
user: "${UID}:${GID}"
volumes:
- /var/data/docmost:/app/data/storage
- docmost_redis_data:/app/data/storage
networks:
- net
- traefik-public
deploy:
placement:
constraints:
- node.labels.docmost.docmost_redis_data == true
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public