Closed m0rph84 closed 5 years ago
Hi @m0rph84,
docker-compose.yml
, .env
, ... (without sensitive values)Hi @crazy-max, thanks for replying:
/var/nextcloud/nextcloud.env
TZ=Usa/New York
MEMORY_LIMIT=1024M
UPLOAD_MAX_SIZE=4096M
OPCACHE_MEM_SIZE=256M
APC_SHM_SIZE=256M
REAL_IP_FROM=0.0.0.0/32
REAL_IP_HEADER=X-Forwarded-For
LOG_IP_VAR=http_x_forwarded_for
HSTS_HEADER=max-age=15768000; includeSubDomains
RP_HEADER=strict-origin
SUBDIR=
DB_TYPE=mysql
DB_HOST=db
DB_NAME=nextcloud
DB_USER=■■■
DB_PASSWORD=■■■
/var/nextcloud/docker-compose.yml
version: "3.2"
services:
traefik:
image: traefik:1.7-alpine
container_name: traefik
command:
- "--logLevel=INFO"
- "--defaultentrypoints=http,https"
- "--entryPoints=Name:http Address::80 Redirect.EntryPoint:https"
- "--entryPoints=Name:https Address::443 TLS"
- "--docker"
- "--docker.exposedbydefault=false"
- "--docker.domain=mydomain.io"
- "--acme=true"
- "--acme.acmelogging=true"
- "--acme.email=webmaster@mydomain.io"
- "--acme.storage=acme.json"
- "--acme.entryPoint=https"
- "--acme.onhostrule=true"
- "--acme.httpchallenge=true"
- "--acme.httpchallenge.entrypoint=http"
ports:
- target: 80
published: 80
protocol: tcp
- target: 443
published: 443
protocol: tcp
volumes:
- "./acme.json:/acme.json"
- "/var/run/docker.sock:/var/run/docker.sock"
restart: always
db:
image: mariadb:10.2
container_name: nextcloud_db
volumes:
- "db:/var/lib/mysql"
environment:
- "MYSQL_ALLOW_EMPTY_PASSWORD=yes"
- "MYSQL_DATABASE=nextcloud"
- "MYSQL_USER= ■■■
- "MYSQL_PASSWORD=■■■
restart: always
redis:
image: redis:4.0-alpine
container_name: nextcloud_redis
restart: always
collabora:
image: collabora/code
container_name: nextcloud_collabora
cap_add:
- MKNOD
labels:
- "traefik.enable=true"
- "traefik.backend=collabora"
- "traefik.port=9980"
- "traefik.frontend.entryPoints=http"
- "traefik.frontend.rule=Host:collabora.mydomain.io"
environment:
- "DONT_GEN_SSL_CERT=true"
- "domain=collabora.mydomain.io"
- "extra_params=--disable-ssl"
restart: always
nextcloud:
image: crazymax/nextcloud:latest
container_name: nextcloud
depends_on:
- db
- redis
volumes:
- "nextcloud:/data"
labels:
- "traefik.enable=true"
- "traefik.backend=nextcloud"
- "traefik.port=8000"
- "traefik.frontend.rule=Host:nextcloud.mydomain.io"
- "traefik.frontend.redirect.permanent=true"
- "traefik.frontend.redirect.regex=https://(.*)/.well-known/(card|cal)dav"
- "traefik.frontend.redirect.replacement=https://$$1/remote.php/dav/"
env_file:
- "./nextcloud.env"
restart: always
cron:
image: crazymax/nextcloud:latest
container_name: nextcloud_cron
depends_on:
- nextcloud
volumes:
- "nextcloud:/data"
env_file:
- "./nextcloud.env"
environment:
- "SIDECAR_CRON=1"
- "CRON_PERIOD=*/15 * * * *"
restart: always
news_updater:
image: crazymax/nextcloud:latest
container_name: nextcloud_news_updater
depends_on:
- nextcloud
volumes:
- "nextcloud:/data"
env_file:
- "./nextcloud.env"
environment:
- "SIDECAR_NEWSUPDATER=1"
- "NC_NEWSUPDATER_THREADS=10"
- "NC_NEWSUPDATER_TIMEOUT=300"
- "NC_NEWSUPDATER_INTERVAL=900"
- "NC_NEWSUPDATER_LOGLEVEL=error"
restart: always
volumes:
db:
nextcloud:
Value of OPCACHE_MEM_SIZE
is wrong, this should be OPCACHE_MEM_SIZE=256
.
See opcache.memory-consumption for more info.
Behaviour
Nextcloud still report a warning about OPcache even though I already have added the suggested configuration inside php.ini and opcache.ini Probably is just some misconfiguration at my hand but I can't find a way to fix it.
Steps to reproduce this issue
Expected behaviour
The warning message should be gone.
Actual behaviour
Still see the warning.
Configuration
Docker version: 19.03.2
Platform: GNU/Linux CentOS 7
/etc/php7/conf.d/opcache.ini
Docker info