diff --git a/.examples/docker-compose/insecure/mariadb-with-redis/apache/app/Dockerfile b/.examples/docker-compose/insecure/mariadb-cron-redis/apache/app/Dockerfile similarity index 100% rename from .examples/docker-compose/insecure/mariadb-with-redis/apache/app/Dockerfile rename to .examples/docker-compose/insecure/mariadb-cron-redis/apache/app/Dockerfile diff --git a/.examples/docker-compose/insecure/mariadb-with-cron/apache/app/autoconfig.php b/.examples/docker-compose/insecure/mariadb-cron-redis/apache/app/autoconfig.php similarity index 100% rename from .examples/docker-compose/insecure/mariadb-with-cron/apache/app/autoconfig.php rename to .examples/docker-compose/insecure/mariadb-cron-redis/apache/app/autoconfig.php diff --git a/.examples/docker-compose/insecure/mariadb-with-redis/apache/app/redis.config.php b/.examples/docker-compose/insecure/mariadb-cron-redis/apache/app/redis.config.php similarity index 100% rename from .examples/docker-compose/insecure/mariadb-with-redis/apache/app/redis.config.php rename to .examples/docker-compose/insecure/mariadb-cron-redis/apache/app/redis.config.php diff --git a/.examples/docker-compose/insecure/mariadb-with-cron/apache/db.env b/.examples/docker-compose/insecure/mariadb-cron-redis/apache/db.env similarity index 100% rename from .examples/docker-compose/insecure/mariadb-with-cron/apache/db.env rename to .examples/docker-compose/insecure/mariadb-cron-redis/apache/db.env diff --git a/.examples/docker-compose/insecure/mariadb-with-cron/apache/docker-compose.yml b/.examples/docker-compose/insecure/mariadb-cron-redis/apache/docker-compose.yml similarity index 91% rename from .examples/docker-compose/insecure/mariadb-with-cron/apache/docker-compose.yml rename to .examples/docker-compose/insecure/mariadb-cron-redis/apache/docker-compose.yml index 4837120..f5ae21f 100644 --- a/.examples/docker-compose/insecure/mariadb-with-cron/apache/docker-compose.yml +++ b/.examples/docker-compose/insecure/mariadb-cron-redis/apache/docker-compose.yml @@ -12,6 +12,10 @@ services: env_file: - db.env + redis: + image: redis + restart: always + app: build: ./app restart: always @@ -23,6 +27,7 @@ services: - db.env links: - db + - redis cron: build: ./app @@ -31,6 +36,7 @@ services: - nextcloud:/var/www/html links: - db + - redis user: www-data entrypoint: | bash -c 'bash -s < '/var/www/html/data', - 'dbtype' => 'mysql', - 'dbname' => getenv('MYSQL_DATABASE'), - 'dbuser' => getenv('MYSQL_USER'), - 'dbpass' => getenv('MYSQL_PASSWORD'), - 'dbhost' => 'db', - 'dbtableprefix' => '', -); diff --git a/.examples/docker-compose/insecure/mariadb-with-redis/apache/db.env b/.examples/docker-compose/insecure/mariadb-with-redis/apache/db.env deleted file mode 100644 index a436605..0000000 --- a/.examples/docker-compose/insecure/mariadb-with-redis/apache/db.env +++ /dev/null @@ -1,3 +0,0 @@ -MYSQL_PASSWORD= -MYSQL_DATABASE=nextcloud -MYSQL_USER=nextcloud diff --git a/.examples/docker-compose/insecure/mariadb-with-redis/apache/docker-compose.yml b/.examples/docker-compose/insecure/mariadb-with-redis/apache/docker-compose.yml deleted file mode 100644 index faf117a..0000000 --- a/.examples/docker-compose/insecure/mariadb-with-redis/apache/docker-compose.yml +++ /dev/null @@ -1,34 +0,0 @@ -version: '3' - -services: - db: - image: mariadb - # image: mysql - restart: always - volumes: - - db:/var/lib/mysql - environment: - - MYSQL_ROOT_PASSWORD= - env_file: - - db.env - - redis: - image: redis - restart: always - - app: - build: ./app - restart: always - ports: - - 8080:80 - volumes: - - nextcloud:/var/www/html - env_file: - - db.env - links: - - db - - redis - -volumes: - db: - nextcloud: