0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-07-18 05:38:04 +02:00

Compare commits

..

7 commits

Author SHA1 Message Date
Kaloyan Nikolov
f1d57d8cf9 Use canonical links to external services.
Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com>
2025-04-18 15:39:29 +00:00
Kaloyan Nikolov
dc73c15838 Unified across files / updated README file.
Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com>
2025-04-18 15:15:29 +00:00
Kaloyan Nikolov
2b3107ab68 Moved another comment to new line
Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com>
2025-04-18 14:39:47 +00:00
Kaloyan Nikolov
b0d2b409c5 Moved some comments on new lines.
Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com>
2025-04-18 14:19:09 +00:00
Kaloyan Nikolov
b794772eee
Update .examples/docker-compose/insecure/mariadb/fpm/compose.yaml
Co-authored-by: J0WI <J0WI@users.noreply.github.com>
Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com>
2025-04-18 17:15:05 +03:00
Kaloyan Nikolov
3da9abd023
Update .examples/docker-compose/insecure/postgres/apache/compose.yaml
Co-authored-by: J0WI <J0WI@users.noreply.github.com>
Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com>
2025-04-18 17:14:57 +03:00
Kaloyan Nikolov
9362d983dc
Update .examples/docker-compose/insecure/mariadb/apache/compose.yaml
Co-authored-by: J0WI <J0WI@users.noreply.github.com>
Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com>
2025-04-18 17:14:27 +03:00
9 changed files with 64 additions and 48 deletions

View file

@ -1,8 +1,9 @@
services: services:
# Note: MariaDB is an external service. You can find more information about the configuration here: # 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: 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 command: --transaction-isolation=READ-COMMITTED
restart: always restart: always
volumes: volumes:
@ -15,7 +16,7 @@ services:
- db.env - db.env
# Note: Redis is an external service. You can find more information about the configuration here: # 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: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always

View file

@ -1,8 +1,9 @@
services: services:
# Note: MariaDB is an external service. You can find more information about the configuration here: # 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: 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 command: --transaction-isolation=READ-COMMITTED
restart: always restart: always
volumes: volumes:
@ -15,7 +16,7 @@ services:
- db.env - db.env
# Note: Redis is an external service. You can find more information about the configuration here: # 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: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -38,12 +39,13 @@ services:
# Note: Nginx is an external service. You can find more information about the configuration here: # Note: Nginx is an external service. You can find more information about the configuration here:
# https://hub.docker.com/_/nginx/ # https://hub.docker.com/_/nginx/
web: web:
image: nginx:alpine image: nginx:alpine-slim
restart: always restart: always
ports: ports:
- 127.0.0.1:8080:80 - 127.0.0.1:8080:80
volumes: 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) # 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 - nextcloud:/var/www/html:z,ro
depends_on: depends_on:

View file

@ -1,8 +1,9 @@
services: services:
# Note: PostgreSQL is an external service. You can find more information about the configuration here: # 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: 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 restart: always
volumes: volumes:
- db:/var/lib/postgresql/data:Z - db:/var/lib/postgresql/data:Z
@ -10,7 +11,7 @@ services:
- db.env - db.env
# Note: Redis is an external service. You can find more information about the configuration here: # 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: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always

View file

@ -1,8 +1,9 @@
services: services:
# Note: PostgreSQL is an external service. You can find more information about the configuration here: # 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: 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 restart: always
volumes: volumes:
- db:/var/lib/postgresql/data:Z - db:/var/lib/postgresql/data:Z
@ -10,7 +11,7 @@ services:
- db.env - db.env
# Note: Redis is an external service. You can find more information about the configuration here: # 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: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -33,12 +34,13 @@ services:
# Note: Nginx is an external service. You can find more information about the configuration here: # Note: Nginx is an external service. You can find more information about the configuration here:
# https://hub.docker.com/_/nginx/ # https://hub.docker.com/_/nginx/
web: web:
image: nginx:alpine image: nginx:alpine-slim
restart: always restart: always
ports: ports:
- 127.0.0.1:8080:80 - 127.0.0.1:8080:80
volumes: 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) # 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 - nextcloud:/var/www/html:z,ro
depends_on: depends_on:

View file

@ -1,8 +1,9 @@
services: services:
# Note: MariaDB is an external service. You can find more information about the configuration here: # 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: 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 command: --transaction-isolation=READ-COMMITTED
restart: always restart: always
volumes: volumes:
@ -15,7 +16,7 @@ services:
- db.env - db.env
# Note: Redis is an external service. You can find more information about the configuration here: # 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: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -74,7 +75,7 @@ services:
- proxy-tier - proxy-tier
# Note: Letsencrypt companion is an external service. You can find more information about the configuration here: # 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: letsencrypt-companion:
image: nginxproxy/acme-companion image: nginxproxy/acme-companion
restart: always restart: always

View file

@ -1,8 +1,9 @@
services: services:
# Note: MariaDB is an external service. You can find more information about the configuration here: # 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: 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 command: --transaction-isolation=READ-COMMITTED
restart: always restart: always
volumes: volumes:
@ -15,7 +16,7 @@ services:
- db.env - db.env
# Note: Redis is an external service. You can find more information about the configuration here: # 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: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -39,10 +40,11 @@ services:
# Note: Nginx is an external service. You can find more information about the configuration here: # Note: Nginx is an external service. You can find more information about the configuration here:
# https://hub.docker.com/_/nginx/ # https://hub.docker.com/_/nginx/
web: web:
image: nginx:alpine image: nginx:alpine-slim
restart: always restart: always
volumes: 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) # 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 - nextcloud:/var/www/html:z,ro
environment: environment:
@ -86,7 +88,7 @@ services:
- proxy-tier - proxy-tier
# Note: Letsencrypt companion is an external service. You can find more information about the configuration here: # 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: letsencrypt-companion:
image: nginxproxy/acme-companion image: nginxproxy/acme-companion
restart: always restart: always

View file

@ -1,8 +1,9 @@
services: services:
# Note: PostgreSQL is an external service. You can find more information about the configuration here: # 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: 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 restart: always
volumes: volumes:
- db:/var/lib/postgresql/data:Z - db:/var/lib/postgresql/data:Z
@ -10,7 +11,7 @@ services:
- db.env - db.env
# Note: Redis is an external service. You can find more information about the configuration here: # 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: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -68,7 +69,7 @@ services:
- proxy-tier - proxy-tier
# Note: Letsencrypt companion is an external service. You can find more information about the configuration here: # 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: letsencrypt-companion:
image: nginxproxy/acme-companion image: nginxproxy/acme-companion
restart: always restart: always

View file

@ -1,8 +1,9 @@
services: services:
# Note: PostgreSQL is an external service. You can find more information about the configuration here: # 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: 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 restart: always
volumes: volumes:
- db:/var/lib/postgresql/data:Z - db:/var/lib/postgresql/data:Z
@ -10,7 +11,7 @@ services:
- db.env - db.env
# Note: Redis is an external service. You can find more information about the configuration here: # 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: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -34,10 +35,11 @@ services:
# Note: Nginx is an external service. You can find more information about the configuration here: # Note: Nginx is an external service. You can find more information about the configuration here:
# https://hub.docker.com/_/nginx/ # https://hub.docker.com/_/nginx/
web: web:
image: nginx:alpine image: nginx:alpine-slim
restart: always restart: always
volumes: 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) # 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 - nextcloud:/var/www/html:z,ro
environment: environment:
@ -81,7 +83,7 @@ services:
- proxy-tier - proxy-tier
# Note: Letsencrypt companion is an external service. You can find more information about the configuration here: # 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: letsencrypt-companion:
image: nginxproxy/acme-companion image: nginxproxy/acme-companion
restart: always restart: always

View file

@ -82,7 +82,7 @@ Database:
```console ```console
$ docker run -d \ $ docker run -d \
-v db:/var/lib/mysql \ -v db:/var/lib/mysql \
mariadb:10.11 mariadb:lts
``` ```
### Additional volumes ### Additional volumes
@ -404,9 +404,10 @@ Make sure to pass in values for `MYSQL_ROOT_PASSWORD` and `MYSQL_PASSWORD` varia
```yaml ```yaml
services: services:
# Note: MariaDB is external service. You can find more information about the configuration here: # 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: 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 restart: always
command: --transaction-isolation=READ-COMMITTED command: --transaction-isolation=READ-COMMITTED
volumes: volumes:
@ -418,7 +419,7 @@ services:
- MYSQL_USER=nextcloud - MYSQL_USER=nextcloud
# Note: Redis is an external service. You can find more information about the configuration here: # 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: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -456,9 +457,10 @@ Make sure to pass in values for `MYSQL_ROOT_PASSWORD` and `MYSQL_PASSWORD` varia
```yaml ```yaml
services: services:
# Note: MariaDB is an external service. You can find more information about the configuration here: # 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: 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 restart: always
command: --transaction-isolation=READ-COMMITTED command: --transaction-isolation=READ-COMMITTED
volumes: volumes:
@ -470,7 +472,7 @@ services:
- MYSQL_USER=nextcloud - MYSQL_USER=nextcloud
# Note: Redis is an external service. You can find more information about the configuration here: # 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: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -492,14 +494,15 @@ services:
# Note: Nginx is an external service. You can find more information about the configuration here: # Note: Nginx is an external service. You can find more information about the configuration here:
# https://hub.docker.com/_/nginx/ # https://hub.docker.com/_/nginx/
web: web:
image: nginx:alpine image: nginx:alpine-slim
restart: always restart: always
ports: ports:
- 8080:80 - 8080:80
depends_on: depends_on:
- app - app
volumes: 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: volumes_from:
- app - app
@ -525,9 +528,10 @@ Example:
```yaml ```yaml
services: services:
# Note: PostgreSQL is external service. You can find more information about the configuration here: # 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: 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 restart: always
volumes: volumes:
- db:/var/lib/postgresql/data - db:/var/lib/postgresql/data
@ -540,7 +544,7 @@ services:
- postgres_password - postgres_password
- postgres_user - postgres_user
# Note: Redis is an external service. You can find more information about the configuration here: # 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: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always