version 16.0.3
my nginx.conf use this
and docker-compose.yml:
version: '3'
services:
redis:
image: redis:alpine
restart: always
app:
image: nextcloud:fpm-alpine
restart: always
volumes:
- ./nextcloud:/var/www/html
environment:
- MYSQL_HOST=xxx
- REDIS_HOST=xxx
env_file:
- db.env
depends_on:
- redis
web:
image: nginx:alpine
restart: always
ports:
- 8080:80
volumes:
- ./nextcloud:/var/www/html:ro
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- app
cron:
image: nextcloud:fpm-alpine
restart: always
volumes:
- ./nextcloud:/var/www/html
entrypoint: /cron.sh
depends_on:
- redis
every page load wait for more than 10 seconds
My server(4C16G) only runs for this app and CPU usage is very low
%Cpu(s): 1.4 us, 4.3 sy, 0.0 ni, 94.2 id, 0.0 wa