Initial server configuration
This commit is contained in:
46
nextcloud/compose.yml
Normal file
46
nextcloud/compose.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
# /services/nextcloud/compose.yml
|
||||
|
||||
services:
|
||||
nextcloud:
|
||||
image: nextcloud:31
|
||||
container_name: nextcloud
|
||||
restart: always
|
||||
depends_on:
|
||||
- nextcloud_db
|
||||
- nextcloud_redis
|
||||
environment:
|
||||
- POSTGRES_HOST=nextcloud_db
|
||||
- POSTGRES_DB=nextcloud
|
||||
- POSTGRES_USER=nextcloud
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||
- REDIS_HOST=nextcloud_redis
|
||||
networks:
|
||||
- default
|
||||
- traefik
|
||||
volumes:
|
||||
- ./config/opcache.ini:/usr/local/etc/php/conf.d/opcache.ini:ro
|
||||
- ./data:/var/www/html
|
||||
|
||||
nextcloud_db:
|
||||
image: postgres:17
|
||||
container_name: nextcloud_db
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_DB=nextcloud
|
||||
- POSTGRES_USER=nextcloud
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||
networks:
|
||||
- default
|
||||
volumes:
|
||||
- ./db:/var/lib/postgresql/data
|
||||
|
||||
nextcloud_redis:
|
||||
image: redis:8
|
||||
container_name: nextcloud_redis
|
||||
restart: always
|
||||
networks:
|
||||
- default
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
8
nextcloud/config/opcache.ini
Normal file
8
nextcloud/config/opcache.ini
Normal file
@@ -0,0 +1,8 @@
|
||||
[opcache]
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
opcache.memory_consumption=256
|
||||
opcache.interned_strings_buffer=16
|
||||
opcache.max_accelerated_files=10000
|
||||
opcache.revalidate_freq=1
|
||||
opcache.save_comments=1
|
||||
Reference in New Issue
Block a user