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

Compare commits

..

No commits in common. "f1d57d8cf92006603f769a6861629c284e1cf7ed" and "9aee5285601e7a9265b3710b85229616ee505d3e" have entirely different histories.

9 changed files with 48 additions and 64 deletions

View file

@ -1,9 +1,8 @@
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://hub.docker.com/_/mariadb # https://docs.linuxserver.io/images/docker-mariadb/#environment-variables-e
db: db:
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server image: mariadb:10.11
image: mariadb:lts
command: --transaction-isolation=READ-COMMITTED command: --transaction-isolation=READ-COMMITTED
restart: always restart: always
volumes: volumes:
@ -16,7 +15,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://hub.docker.com/_/redis # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration
redis: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always

View file

@ -1,9 +1,8 @@
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://hub.docker.com/_/mariadb # https://docs.linuxserver.io/images/docker-mariadb/#environment-variables-e
db: db:
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server image: mariadb:10.11
image: mariadb:lts
command: --transaction-isolation=READ-COMMITTED command: --transaction-isolation=READ-COMMITTED
restart: always restart: always
volumes: volumes:
@ -16,7 +15,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://hub.docker.com/_/redis # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration
redis: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -39,13 +38,12 @@ 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-slim image: nginx:alpine
restart: always restart: always
ports: ports:
- 127.0.0.1:8080:80 - 127.0.0.1:8080:80
volumes: volumes:
# https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html - ./web/nginx.conf:/etc/nginx/nginx.conf:ro # 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,9 +1,8 @@
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://hub.docker.com/_/postgres # https://github.com/docker-library/docs/blob/master/postgres/README.md
db: db:
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server image: postgres:16-alpine
image: postgres:alpine
restart: always restart: always
volumes: volumes:
- db:/var/lib/postgresql/data:Z - db:/var/lib/postgresql/data:Z
@ -11,7 +10,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://hub.docker.com/_/redis # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration
redis: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always

View file

@ -1,9 +1,8 @@
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://hub.docker.com/_/postgres # https://github.com/docker-library/docs/blob/master/postgres/README.md
db: db:
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server image: postgres:16-alpine
image: postgres:alpine
restart: always restart: always
volumes: volumes:
- db:/var/lib/postgresql/data:Z - db:/var/lib/postgresql/data:Z
@ -11,7 +10,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://hub.docker.com/_/redis # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration
redis: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -34,13 +33,12 @@ 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-slim image: nginx:alpine
restart: always restart: always
ports: ports:
- 127.0.0.1:8080:80 - 127.0.0.1:8080:80
volumes: volumes:
# https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html - ./web/nginx.conf:/etc/nginx/nginx.conf:ro # 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,9 +1,8 @@
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://hub.docker.com/_/mariadb # https://docs.linuxserver.io/images/docker-mariadb/#environment-variables-e
db: db:
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server image: mariadb:10.11
image: mariadb:lts
command: --transaction-isolation=READ-COMMITTED command: --transaction-isolation=READ-COMMITTED
restart: always restart: always
volumes: volumes:
@ -16,7 +15,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://hub.docker.com/_/redis # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration
redis: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -75,7 +74,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://hub.docker.com/r/nginxproxy/acme-companion # https://github.com/nginx-proxy/acme-companion/tree/main/docs#readme
letsencrypt-companion: letsencrypt-companion:
image: nginxproxy/acme-companion image: nginxproxy/acme-companion
restart: always restart: always

View file

@ -1,9 +1,8 @@
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://hub.docker.com/_/mariadb # https://docs.linuxserver.io/images/docker-mariadb/#environment-variables-e
db: db:
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server image: mariadb:10.11
image: mariadb:lts
command: --transaction-isolation=READ-COMMITTED command: --transaction-isolation=READ-COMMITTED
restart: always restart: always
volumes: volumes:
@ -16,7 +15,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://hub.docker.com/_/redis # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration
redis: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -40,11 +39,10 @@ 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-slim image: nginx:alpine
restart: always restart: always
volumes: volumes:
# https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html - ./web/nginx.conf:/etc/nginx/nginx.conf:ro # 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:
@ -88,7 +86,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://hub.docker.com/r/nginxproxy/acme-companion # https://github.com/nginx-proxy/acme-companion/tree/main/docs#readme
letsencrypt-companion: letsencrypt-companion:
image: nginxproxy/acme-companion image: nginxproxy/acme-companion
restart: always restart: always

View file

@ -1,9 +1,8 @@
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://hub.docker.com/_/postgres # https://github.com/docker-library/docs/blob/master/postgres/README.md
db: db:
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server image: postgres:16-alpine
image: postgres:alpine
restart: always restart: always
volumes: volumes:
- db:/var/lib/postgresql/data:Z - db:/var/lib/postgresql/data:Z
@ -11,7 +10,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://hub.docker.com/_/redis # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration
redis: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -69,7 +68,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://hub.docker.com/r/nginxproxy/acme-companion # https://github.com/nginx-proxy/acme-companion/tree/main/docs#readme
letsencrypt-companion: letsencrypt-companion:
image: nginxproxy/acme-companion image: nginxproxy/acme-companion
restart: always restart: always

View file

@ -1,9 +1,8 @@
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://hub.docker.com/_/postgres # https://github.com/docker-library/docs/blob/master/postgres/README.md
db: db:
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server image: postgres:16-alpine
image: postgres:alpine
restart: always restart: always
volumes: volumes:
- db:/var/lib/postgresql/data:Z - db:/var/lib/postgresql/data:Z
@ -11,7 +10,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://hub.docker.com/_/redis # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration
redis: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -35,11 +34,10 @@ 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-slim image: nginx:alpine
restart: always restart: always
volumes: volumes:
# https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html - ./web/nginx.conf:/etc/nginx/nginx.conf:ro # 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:
@ -83,7 +81,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://hub.docker.com/r/nginxproxy/acme-companion # https://github.com/nginx-proxy/acme-companion/tree/main/docs#readme
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:lts mariadb:10.11
``` ```
### Additional volumes ### Additional volumes
@ -404,10 +404,9 @@ 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://hub.docker.com/_/mariadb # https://docs.linuxserver.io/images/docker-mariadb/#environment-variables-e
db: db:
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server image: mariadb:10.11
image: mariadb:lts
restart: always restart: always
command: --transaction-isolation=READ-COMMITTED command: --transaction-isolation=READ-COMMITTED
volumes: volumes:
@ -419,7 +418,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://hub.docker.com/_/redis # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration
redis: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -457,10 +456,9 @@ 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://hub.docker.com/_/mariadb # https://docs.linuxserver.io/images/docker-mariadb/#environment-variables-e
db: db:
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server image: mariadb:10.11
image: mariadb:lts
restart: always restart: always
command: --transaction-isolation=READ-COMMITTED command: --transaction-isolation=READ-COMMITTED
volumes: volumes:
@ -472,7 +470,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://hub.docker.com/_/redis # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration
redis: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
@ -494,15 +492,14 @@ 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-slim image: nginx:alpine
restart: always restart: always
ports: ports:
- 8080:80 - 8080:80
depends_on: depends_on:
- app - app
volumes: volumes:
# https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html - ./nginx.conf:/etc/nginx/nginx.conf:ro # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html
- ./nginx.conf:/etc/nginx/nginx.conf:ro
volumes_from: volumes_from:
- app - app
@ -528,10 +525,9 @@ 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://hub.docker.com/_/postgres # https://github.com/docker-library/docs/blob/master/postgres/README.md
db: db:
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server image: postgres:16-alpine
image: postgres:alpine
restart: always restart: always
volumes: volumes:
- db:/var/lib/postgresql/data - db:/var/lib/postgresql/data
@ -544,7 +540,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://hub.docker.com/_/redis # https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/#configuration
redis: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always