diff --git a/.examples/docker-compose/insecure/mariadb/apache/compose.yaml b/.examples/docker-compose/insecure/mariadb/apache/compose.yaml index 57fa1f9d..c05d7d8e 100644 --- a/.examples/docker-compose/insecure/mariadb/apache/compose.yaml +++ b/.examples/docker-compose/insecure/mariadb/apache/compose.yaml @@ -1,8 +1,9 @@ services: # Note: MariaDB is an external service. You can find more information about the configuration here: - # https://docs.linuxserver.io/images/docker-mariadb/#environment-variables-e + # https://hub.docker.com/_/mariadb db: - image: mariadb:10.11 + # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server + image: mariadb:lts command: --transaction-isolation=READ-COMMITTED restart: always volumes: @@ -15,7 +16,7 @@ services: - db.env # Note: Redis is an external service. You can find more information about the configuration here: - # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration + # https://hub.docker.com/_/redis redis: image: redis:alpine restart: always diff --git a/.examples/docker-compose/insecure/mariadb/fpm/compose.yaml b/.examples/docker-compose/insecure/mariadb/fpm/compose.yaml index b7631d0f..64faef6c 100644 --- a/.examples/docker-compose/insecure/mariadb/fpm/compose.yaml +++ b/.examples/docker-compose/insecure/mariadb/fpm/compose.yaml @@ -1,8 +1,9 @@ services: # Note: MariaDB is an external service. You can find more information about the configuration here: - # https://docs.linuxserver.io/images/docker-mariadb/#environment-variables-e + # https://hub.docker.com/_/mariadb db: - image: mariadb:10.11 + # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server + image: mariadb:lts command: --transaction-isolation=READ-COMMITTED restart: always volumes: @@ -15,7 +16,7 @@ services: - db.env # Note: Redis is an external service. You can find more information about the configuration here: - # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration + # https://hub.docker.com/_/redis redis: image: redis:alpine restart: always @@ -38,12 +39,13 @@ services: # Note: Nginx is an external service. You can find more information about the configuration here: # https://hub.docker.com/_/nginx/ web: - image: nginx:alpine + image: nginx:alpine-slim restart: always ports: - 127.0.0.1:8080:80 volumes: - - ./web/nginx.conf:/etc/nginx/nginx.conf:ro # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html + # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html + - ./web/nginx.conf:/etc/nginx/nginx.conf:ro # NOTE: The `volumes` included below should match those of the `app` container (unless you know what you're doing) - nextcloud:/var/www/html:z,ro depends_on: diff --git a/.examples/docker-compose/insecure/postgres/apache/compose.yaml b/.examples/docker-compose/insecure/postgres/apache/compose.yaml index 3f863303..8ae34013 100644 --- a/.examples/docker-compose/insecure/postgres/apache/compose.yaml +++ b/.examples/docker-compose/insecure/postgres/apache/compose.yaml @@ -1,8 +1,9 @@ services: # Note: PostgreSQL is an external service. You can find more information about the configuration here: - # https://github.com/docker-library/docs/blob/master/postgres/README.md + # https://hub.docker.com/_/postgres db: - image: postgres:16-alpine + # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server + image: postgres:alpine restart: always volumes: - db:/var/lib/postgresql/data:Z @@ -10,7 +11,7 @@ services: - db.env # Note: Redis is an external service. You can find more information about the configuration here: - # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration + # https://hub.docker.com/_/redis redis: image: redis:alpine restart: always diff --git a/.examples/docker-compose/insecure/postgres/fpm/compose.yaml b/.examples/docker-compose/insecure/postgres/fpm/compose.yaml index dfe3002f..8a88afd4 100644 --- a/.examples/docker-compose/insecure/postgres/fpm/compose.yaml +++ b/.examples/docker-compose/insecure/postgres/fpm/compose.yaml @@ -1,8 +1,9 @@ services: # Note: PostgreSQL is an external service. You can find more information about the configuration here: - # https://github.com/docker-library/docs/blob/master/postgres/README.md + # https://hub.docker.com/_/postgres db: - image: postgres:16-alpine + # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server + image: postgres:alpine restart: always volumes: - db:/var/lib/postgresql/data:Z @@ -10,7 +11,7 @@ services: - db.env # Note: Redis is an external service. You can find more information about the configuration here: - # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration + # https://hub.docker.com/_/redis redis: image: redis:alpine restart: always @@ -33,12 +34,13 @@ services: # Note: Nginx is an external service. You can find more information about the configuration here: # https://hub.docker.com/_/nginx/ web: - image: nginx:alpine + image: nginx:alpine-slim restart: always ports: - 127.0.0.1:8080:80 volumes: - - ./web/nginx.conf:/etc/nginx/nginx.conf:ro # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html + # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html + - ./web/nginx.conf:/etc/nginx/nginx.conf:ro # NOTE: The `volumes` included below should match those of the `app` container (unless you know what you're doing) - nextcloud:/var/www/html:z,ro depends_on: diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml b/.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml index 1af9fb94..e1132818 100644 --- a/.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml +++ b/.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml @@ -1,8 +1,9 @@ services: # Note: MariaDB is an external service. You can find more information about the configuration here: - # https://docs.linuxserver.io/images/docker-mariadb/#environment-variables-e + # https://hub.docker.com/_/mariadb db: - image: mariadb:10.11 + # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server + image: mariadb:lts command: --transaction-isolation=READ-COMMITTED restart: always volumes: @@ -15,7 +16,7 @@ services: - db.env # Note: Redis is an external service. You can find more information about the configuration here: - # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration + # https://hub.docker.com/_/redis redis: image: redis:alpine restart: always @@ -74,7 +75,7 @@ services: - proxy-tier # Note: Letsencrypt companion is an external service. You can find more information about the configuration here: - # https://github.com/nginx-proxy/acme-companion/tree/main/docs#readme + # https://hub.docker.com/r/nginxproxy/acme-companion letsencrypt-companion: image: nginxproxy/acme-companion restart: always diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml index edc17ae1..13d4a40b 100644 --- a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml +++ b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml @@ -1,8 +1,9 @@ services: # Note: MariaDB is an external service. You can find more information about the configuration here: - # https://docs.linuxserver.io/images/docker-mariadb/#environment-variables-e + # https://hub.docker.com/_/mariadb db: - image: mariadb:10.11 + # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server + image: mariadb:lts command: --transaction-isolation=READ-COMMITTED restart: always volumes: @@ -15,7 +16,7 @@ services: - db.env # Note: Redis is an external service. You can find more information about the configuration here: - # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration + # https://hub.docker.com/_/redis redis: image: redis:alpine restart: always @@ -39,10 +40,11 @@ services: # Note: Nginx is an external service. You can find more information about the configuration here: # https://hub.docker.com/_/nginx/ web: - image: nginx:alpine + image: nginx:alpine-slim restart: always volumes: - - ./web/nginx.conf:/etc/nginx/nginx.conf:ro # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html + # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html + - ./web/nginx.conf:/etc/nginx/nginx.conf:ro # NOTE: The `volumes` included below should match those of the `app` container (unless you know what you're doing) - nextcloud:/var/www/html:z,ro environment: @@ -86,7 +88,7 @@ services: - proxy-tier # Note: Letsencrypt companion is an external service. You can find more information about the configuration here: - # https://github.com/nginx-proxy/acme-companion/tree/main/docs#readme + # https://hub.docker.com/r/nginxproxy/acme-companion letsencrypt-companion: image: nginxproxy/acme-companion restart: always diff --git a/.examples/docker-compose/with-nginx-proxy/postgres/apache/compose.yaml b/.examples/docker-compose/with-nginx-proxy/postgres/apache/compose.yaml index a5e98585..035359f0 100644 --- a/.examples/docker-compose/with-nginx-proxy/postgres/apache/compose.yaml +++ b/.examples/docker-compose/with-nginx-proxy/postgres/apache/compose.yaml @@ -1,8 +1,9 @@ services: # Note: PostgreSQL is an external service. You can find more information about the configuration here: - # https://github.com/docker-library/docs/blob/master/postgres/README.md + # https://hub.docker.com/_/postgres db: - image: postgres:16-alpine + # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server + image: postgres:alpine restart: always volumes: - db:/var/lib/postgresql/data:Z @@ -10,7 +11,7 @@ services: - db.env # Note: Redis is an external service. You can find more information about the configuration here: - # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration + # https://hub.docker.com/_/redis redis: image: redis:alpine restart: always @@ -68,7 +69,7 @@ services: - proxy-tier # Note: Letsencrypt companion is an external service. You can find more information about the configuration here: - # https://github.com/nginx-proxy/acme-companion/tree/main/docs#readme + # https://hub.docker.com/r/nginxproxy/acme-companion letsencrypt-companion: image: nginxproxy/acme-companion restart: always diff --git a/.examples/docker-compose/with-nginx-proxy/postgres/fpm/compose.yaml b/.examples/docker-compose/with-nginx-proxy/postgres/fpm/compose.yaml index 2d419ddb..78654edd 100644 --- a/.examples/docker-compose/with-nginx-proxy/postgres/fpm/compose.yaml +++ b/.examples/docker-compose/with-nginx-proxy/postgres/fpm/compose.yaml @@ -1,8 +1,9 @@ services: # Note: PostgreSQL is an external service. You can find more information about the configuration here: - # https://github.com/docker-library/docs/blob/master/postgres/README.md + # https://hub.docker.com/_/postgres db: - image: postgres:16-alpine + # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server + image: postgres:alpine restart: always volumes: - db:/var/lib/postgresql/data:Z @@ -10,7 +11,7 @@ services: - db.env # Note: Redis is an external service. You can find more information about the configuration here: - # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration + # https://hub.docker.com/_/redis redis: image: redis:alpine restart: always @@ -34,10 +35,11 @@ services: # Note: Nginx is an external service. You can find more information about the configuration here: # https://hub.docker.com/_/nginx/ web: - image: nginx:alpine + image: nginx:alpine-slim restart: always volumes: - - ./web/nginx.conf:/etc/nginx/nginx.conf:ro # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html + # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html + - ./web/nginx.conf:/etc/nginx/nginx.conf:ro # NOTE: The `volumes` included below should match those of the `app` container (unless you know what you're doing) - nextcloud:/var/www/html:z,ro environment: @@ -81,7 +83,7 @@ services: - proxy-tier # Note: Letsencrypt companion is an external service. You can find more information about the configuration here: - # https://github.com/nginx-proxy/acme-companion/tree/main/docs#readme + # https://hub.docker.com/r/nginxproxy/acme-companion letsencrypt-companion: image: nginxproxy/acme-companion restart: always diff --git a/README.md b/README.md index a2f1c426..3be70217 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ Database: ```console $ docker run -d \ -v db:/var/lib/mysql \ -mariadb:10.11 +mariadb:lts ``` ### Additional volumes @@ -404,9 +404,10 @@ Make sure to pass in values for `MYSQL_ROOT_PASSWORD` and `MYSQL_PASSWORD` varia ```yaml services: # Note: MariaDB is external service. You can find more information about the configuration here: - # https://docs.linuxserver.io/images/docker-mariadb/#environment-variables-e + # https://hub.docker.com/_/mariadb db: - image: mariadb:10.11 + # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server + image: mariadb:lts restart: always command: --transaction-isolation=READ-COMMITTED volumes: @@ -418,7 +419,7 @@ services: - MYSQL_USER=nextcloud # Note: Redis is an external service. You can find more information about the configuration here: - # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration + # https://hub.docker.com/_/redis redis: image: redis:alpine restart: always @@ -456,9 +457,10 @@ Make sure to pass in values for `MYSQL_ROOT_PASSWORD` and `MYSQL_PASSWORD` varia ```yaml services: # Note: MariaDB is an external service. You can find more information about the configuration here: - # https://docs.linuxserver.io/images/docker-mariadb/#environment-variables-e + # https://hub.docker.com/_/mariadb db: - image: mariadb:10.11 + # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server + image: mariadb:lts restart: always command: --transaction-isolation=READ-COMMITTED volumes: @@ -470,7 +472,7 @@ services: - MYSQL_USER=nextcloud # Note: Redis is an external service. You can find more information about the configuration here: - # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration + # https://hub.docker.com/_/redis redis: image: redis:alpine restart: always @@ -492,14 +494,15 @@ services: # Note: Nginx is an external service. You can find more information about the configuration here: # https://hub.docker.com/_/nginx/ web: - image: nginx:alpine + image: nginx:alpine-slim restart: always ports: - 8080:80 depends_on: - app volumes: - - ./nginx.conf:/etc/nginx/nginx.conf:ro # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html + # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html + - ./nginx.conf:/etc/nginx/nginx.conf:ro volumes_from: - app @@ -525,9 +528,10 @@ Example: ```yaml services: # Note: PostgreSQL is external service. You can find more information about the configuration here: - # https://github.com/docker-library/docs/blob/master/postgres/README.md + # https://hub.docker.com/_/postgres db: - image: postgres:16-alpine + # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server + image: postgres:alpine restart: always volumes: - db:/var/lib/postgresql/data @@ -540,7 +544,7 @@ services: - postgres_password - postgres_user # Note: Redis is an external service. You can find more information about the configuration here: - # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration + # https://hub.docker.com/_/redis redis: image: redis:alpine restart: always