Compare commits

..

2 Commits

Author SHA1 Message Date
15f88de2d0
Fix redis connectivity 2025-03-02 15:18:43 -05:00
bfd8108568
Add memory limit 2025-03-02 15:08:56 -05:00

View File

@ -4,11 +4,14 @@ volumes:
networks:
traefik:
external: true
internal:
internal: true
services:
nextcloud:
image: "${IMAGE:-nextcloud}:${VERSION:-latest}"
container_name: "${NAME:-nextcloud}"
mem_limit: ${MEM_LIMIT:-2g}
environment:
PHP_MEMORY_LIMIT: "${PHP_MEMORY_LIMIT:-1024M}"
labels:
@ -23,6 +26,7 @@ services:
- "traefik.docker.network=${NETWORK:-traefik}"
- "traefik.enable=${ENABLE:-true}"
networks:
- internal
- "${NETWORK:-traefik}"
extra_hosts:
- "host.docker.internal:host-gateway"
@ -32,5 +36,7 @@ services:
image: "redis:${REDIS_VERSION:-latest}"
container_name: "${NAME:-nextcloud}-redis"
command: redis-server --requirepass ${REDIS_PASSWORD:?}
networks:
- internal
volumes:
- redis:/data