diff --git a/nextcloud/docker-compose.yaml b/nextcloud/docker-compose.yaml index 6ee41bc..eaf069e 100644 --- a/nextcloud/docker-compose.yaml +++ b/nextcloud/docker-compose.yaml @@ -82,12 +82,40 @@ services: - MYSQL_PASSWORD=${MYSQL_PASSWORD} - MYSQL_DATABASE=${MYSQL_DATABASE} - MYSQL_USER=${MYSQL_USER} + logging: + driver: "json-file" + options: + max-size: "200k" + max-file: "5" networks: - nextcloud + - mariadb labels: - "docker.group=netxtcloud" + adminer: + image: adminer + restart: unless-stopped + networks: + - web + - mariadb + environment: + - ADMINER_DEFAULT_SERVER=db + - ADMINER_DESIGN=flat + depends_on: + - db + labels: + - "traefik.enable=true" + - "traefik.http.routers.adminer.rule=Host(`adminer.${DOMAIN}`)" + - "traefik.http.routers.adminer.entrypoints=websecure" + - "traefik.http.routers.adminer.tls.certresolver=netcup" + - "traefik.http.routers.adminer.tls.options=intermediate@file" + - "traefik.http.routers.adminer.middlewares=adminerauth" + - "traefik.http.middlewares.adminerauth.basicauth.users=${HTPASSWD_ADMINER}" + - "docker.group=netxtcloud" + + redis: image: redis:alpine restart: unless-stopped @@ -133,4 +161,4 @@ networks: web: external: true nextcloud: - external: false + mariadb: