Refactor Docker and Kubernetes configurations to add user and volume mapping for Redis service

This commit is contained in:
2024-07-31 14:58:37 +08:00
parent 8112288dac
commit 179f618469
2 changed files with 8 additions and 4 deletions
+2
View File
@@ -19,6 +19,7 @@ services:
expose:
- 3000
restart: unless-stopped
user: "${UID}:${GID}"
volumes:
- /var/data/docmost:/app/data/storage
networks:
@@ -50,6 +51,7 @@ services:
redis:
image: redis:7.2-alpine
restart: unless-stopped
user: "${UID}:${GID}"
volumes:
- /var/data/redis_data:/data
networks:
+6 -4
View File
@@ -13,6 +13,7 @@ services:
redis:
image: redis:7.2-alpine
restart: unless-stopped
user: "${UID}:${GID}"
volumes:
- /var/data/outline_redis_data:/data
networks:
@@ -39,12 +40,13 @@ services:
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
- SLACK_CLIENT_ID=${SLACK_CLIENT_ID}
- SLACK_CLIENT_SECRET=${SLACK_CLIENT_SECRET}
expose:
- 3000
volumes:
- /var/data/outline_data:/var/lib/outline/data
depends_on:
- redis
user: "${UID}:${GID}"
volumes:
- /var/data/outline_data:/var/lib/outline/data
expose:
- 3000
networks:
- net
- traefik-public