mirror of
https://github.com/nextcloud/docker.git
synced 2025-07-17 21:28:05 +02:00
Compare commits
7 commits
9aee528560
...
f1d57d8cf9
Author | SHA1 | Date | |
---|---|---|---|
|
f1d57d8cf9 | ||
|
dc73c15838 | ||
|
2b3107ab68 | ||
|
b0d2b409c5 | ||
|
b794772eee | ||
|
3da9abd023 | ||
|
9362d983dc |
9 changed files with 64 additions and 48 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
28
README.md
28
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue