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