diff --git a/app/Dockerfile b/app/Dockerfile new file mode 100644 index 0000000..4a11161 --- /dev/null +++ b/app/Dockerfile @@ -0,0 +1,3 @@ +FROM nextcloud:fpm + +COPY redis.config.php /usr/src/nextcloud/config/redis.config.php diff --git a/app/redis.config.php b/app/redis.config.php new file mode 100644 index 0000000..b0cebe3 --- /dev/null +++ b/app/redis.config.php @@ -0,0 +1,8 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => 'redis', + 'port' => 6379, + ), +); diff --git a/docker-compose.yml b/docker-compose.yml index 32fce4d..f3f1c35 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,11 +2,13 @@ services: nextcloud-app: - image: nextcloud:fpm + #image: nextcloud:fpm + build: ./app restart: always mem_limit: 1g depends_on: - nextcloud-database + - nextcloud-redis environment: - MYSQL_HOST=mysql - MYSQL_DATABASE=cloud @@ -61,6 +63,10 @@ aliases: - mysql + nextcloud-redis: + image: redis + restart: always + networks: nextcloud-network: driver: bridge