manual-install: add docker profiles for optional services

Signed-off-by: ManOki <ManOki@users.noreply.github.com>
This commit is contained in:
ManOki 2022-12-23 15:45:22 +01:00
parent 3eb2b164e1
commit ce165e05a1
3 changed files with 33 additions and 17 deletions

View file

@ -28,7 +28,7 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-database: nextcloud-aio-database:
container_name: nextcloud-aio-database container_name: nextcloud-aio-database
image: nextcloud/aio-postgresql:latest-arm64 image: nextcloud/aio-postgresql:latest-arm64
@ -45,7 +45,7 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-nextcloud: nextcloud-aio-nextcloud:
container_name: nextcloud-aio-nextcloud container_name: nextcloud-aio-nextcloud
depends_on: depends_on:
@ -101,7 +101,7 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-redis: nextcloud-aio-redis:
container_name: nextcloud-aio-redis container_name: nextcloud-aio-redis
image: nextcloud/aio-redis:latest-arm64 image: nextcloud/aio-redis:latest-arm64
@ -112,9 +112,10 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-collabora: nextcloud-aio-collabora:
container_name: nextcloud-aio-collabora container_name: nextcloud-aio-collabora
profiles: ["collabora"]
image: nextcloud/aio-collabora:latest-arm64 image: nextcloud/aio-collabora:latest-arm64
environment: environment:
- aliasgroup1=https://${NC_DOMAIN}:443 - aliasgroup1=https://${NC_DOMAIN}:443
@ -125,9 +126,10 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-talk: nextcloud-aio-talk:
container_name: nextcloud-aio-talk container_name: nextcloud-aio-talk
profiles: ["talk"]
image: nextcloud/aio-talk:latest-arm64 image: nextcloud/aio-talk:latest-arm64
ports: ports:
- ${TALK_PORT}:${TALK_PORT}/tcp - ${TALK_PORT}:${TALK_PORT}/tcp
@ -143,9 +145,10 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-onlyoffice: nextcloud-aio-onlyoffice:
container_name: nextcloud-aio-onlyoffice container_name: nextcloud-aio-onlyoffice
profiles: ["onlyoffice"]
image: nextcloud/aio-onlyoffice:latest-arm64 image: nextcloud/aio-onlyoffice:latest-arm64
environment: environment:
- TZ=${TIMEZONE} - TZ=${TIMEZONE}
@ -158,9 +161,10 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-imaginary: nextcloud-aio-imaginary:
container_name: nextcloud-aio-imaginary container_name: nextcloud-aio-imaginary
profiles: ["imaginary"]
image: nextcloud/aio-imaginary:latest-arm64 image: nextcloud/aio-imaginary:latest-arm64
environment: environment:
- TZ=${TIMEZONE} - TZ=${TIMEZONE}
@ -168,9 +172,10 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-fulltextsearch: nextcloud-aio-fulltextsearch:
container_name: nextcloud-aio-fulltextsearch container_name: nextcloud-aio-fulltextsearch
profiles: ["fulltextsearch"]
image: nextcloud/aio-fulltextsearch:latest-arm64 image: nextcloud/aio-fulltextsearch:latest-arm64
environment: environment:
- TZ=${TIMEZONE} - TZ=${TIMEZONE}

View file

@ -28,7 +28,7 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-database: nextcloud-aio-database:
container_name: nextcloud-aio-database container_name: nextcloud-aio-database
image: nextcloud/aio-postgresql:latest image: nextcloud/aio-postgresql:latest
@ -45,7 +45,7 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-nextcloud: nextcloud-aio-nextcloud:
container_name: nextcloud-aio-nextcloud container_name: nextcloud-aio-nextcloud
depends_on: depends_on:
@ -104,7 +104,7 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-redis: nextcloud-aio-redis:
container_name: nextcloud-aio-redis container_name: nextcloud-aio-redis
image: nextcloud/aio-redis:latest image: nextcloud/aio-redis:latest
@ -115,9 +115,10 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-collabora: nextcloud-aio-collabora:
container_name: nextcloud-aio-collabora container_name: nextcloud-aio-collabora
profiles: ["collabora"]
image: nextcloud/aio-collabora:latest image: nextcloud/aio-collabora:latest
environment: environment:
- aliasgroup1=https://${NC_DOMAIN}:443 - aliasgroup1=https://${NC_DOMAIN}:443
@ -128,9 +129,10 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-talk: nextcloud-aio-talk:
container_name: nextcloud-aio-talk container_name: nextcloud-aio-talk
profiles: ["talk"]
image: nextcloud/aio-talk:latest image: nextcloud/aio-talk:latest
ports: ports:
- ${TALK_PORT}:${TALK_PORT}/tcp - ${TALK_PORT}:${TALK_PORT}/tcp
@ -146,9 +148,10 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-clamav: nextcloud-aio-clamav:
container_name: nextcloud-aio-clamav container_name: nextcloud-aio-clamav
profiles: ["clamav"]
image: nextcloud/aio-clamav:latest image: nextcloud/aio-clamav:latest
environment: environment:
- TZ=${TIMEZONE} - TZ=${TIMEZONE}
@ -158,9 +161,10 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-onlyoffice: nextcloud-aio-onlyoffice:
container_name: nextcloud-aio-onlyoffice container_name: nextcloud-aio-onlyoffice
profiles: ["onlyoffice"]
image: nextcloud/aio-onlyoffice:latest image: nextcloud/aio-onlyoffice:latest
environment: environment:
- TZ=${TIMEZONE} - TZ=${TIMEZONE}
@ -173,9 +177,10 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-imaginary: nextcloud-aio-imaginary:
container_name: nextcloud-aio-imaginary container_name: nextcloud-aio-imaginary
profiles: ["imaginary"]
image: nextcloud/aio-imaginary:latest image: nextcloud/aio-imaginary:latest
environment: environment:
- TZ=${TIMEZONE} - TZ=${TIMEZONE}
@ -183,9 +188,10 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud-aio - nextcloud-aio
nextcloud-aio-fulltextsearch: nextcloud-aio-fulltextsearch:
container_name: nextcloud-aio-fulltextsearch container_name: nextcloud-aio-fulltextsearch
profiles: ["fulltextsearch"]
image: nextcloud/aio-fulltextsearch:latest image: nextcloud/aio-fulltextsearch:latest
environment: environment:
- TZ=${TIMEZONE} - TZ=${TIMEZONE}

View file

@ -27,6 +27,11 @@ Now copy the provided yaml file to a docker-compose file by running on x64 `cp l
Now you should be ready to go with `sudo docker-compose --env-file my.conf up`. Now you should be ready to go with `sudo docker-compose --env-file my.conf up`.
## Docker profiles
The default profile of `latest.yml` only provide the minimum necessary services: nextcloud, database, redis and apache. To get optional services collabora, onlyoffice, talk, clamav, imaginary or fulltextsearch use additional arguments for each of them, for example `--profile collabora`.
For a complete all-in-one with collabora use `sudo docker-compose --env-file my.conf --profile collabora --profile talk --profile clamav --profile imaginary --profile fulltextsearch up`.
## How to update? ## How to update?
Since the AIO containers may change in the future, it is highly recommended to strictly follow the following procedure whenever you want to upgrade your containers. Since the AIO containers may change in the future, it is highly recommended to strictly follow the following procedure whenever you want to upgrade your containers.
1. Run `sudo docker-compose --env-file my.conf down` to stop all running containers 1. Run `sudo docker-compose --env-file my.conf down` to stop all running containers