mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-05-23 16:36:00 +00:00
Refactor Docker and Kubernetes configurations to add Redis volume mapping and constraints for Docmost and Outline services
This commit is contained in:
+7
-1
@@ -1,3 +1,6 @@
|
|||||||
|
volumes:
|
||||||
|
docmost_redis_data: {}
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
net:
|
net:
|
||||||
driver: overlay
|
driver: overlay
|
||||||
@@ -21,11 +24,14 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: "${UID}:${GID}"
|
user: "${UID}:${GID}"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/data/docmost:/app/data/storage
|
- docmost_redis_data:/app/data/storage
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
- traefik-public
|
- traefik-public
|
||||||
deploy:
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.labels.docmost.docmost_redis_data == true
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.docker.network=traefik-public
|
- traefik.docker.network=traefik-public
|
||||||
|
|||||||
+7
-5
@@ -1,6 +1,5 @@
|
|||||||
# volumes:
|
volumes:
|
||||||
# storage-data: {}
|
outline_redis_data: {}
|
||||||
# database-data: {}
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
net:
|
net:
|
||||||
@@ -13,11 +12,14 @@ services:
|
|||||||
redis:
|
redis:
|
||||||
image: redis:7.2-alpine
|
image: redis:7.2-alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: "${UID}:${GID}"
|
|
||||||
volumes:
|
volumes:
|
||||||
- /var/data/outline_redis_data:/data
|
- outline_redis_data:/data
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.labels.outline.outline_redis_data == true
|
||||||
|
|
||||||
outline:
|
outline:
|
||||||
image: docker.getoutline.com/outlinewiki/outline:latest
|
image: docker.getoutline.com/outlinewiki/outline:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user