Switches Nextcloud 27 from Apache to Nginx to improve performance esp. of video streaming
This commit is contained in:
parent
5b39dfb6fa
commit
49484a2d1b
5 changed files with 200 additions and 16 deletions
|
|
@ -21,11 +21,8 @@ services:
|
|||
restart: unless-stopped
|
||||
|
||||
nextcloud-app:
|
||||
image: nextcloud:apache
|
||||
image: nextcloud:27-fpm
|
||||
container_name: nextcloud-app
|
||||
networks:
|
||||
- public
|
||||
- default
|
||||
depends_on:
|
||||
- mysqldb
|
||||
volumes:
|
||||
|
|
@ -33,6 +30,19 @@ services:
|
|||
- /etc/localtime:/etc/localtime:ro
|
||||
env_file:
|
||||
- nextcloud.env
|
||||
|
||||
web:
|
||||
image: nginx
|
||||
restart: always
|
||||
depends_on:
|
||||
- nextcloud-app
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- nextcloud:/var/www/html
|
||||
networks:
|
||||
- public
|
||||
- default
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=traefik_public"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue