Updated nextcloud stack file

master
Jef Roosens 2022-02-16 22:19:26 +01:00
parent 058df79eec
commit 4523fb6532
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 29 additions and 0 deletions

View File

@ -35,6 +35,7 @@ services:
- 'REDIS_HOST=redis'
- 'NEXTCLOUD_ADMIN_USER_FILE=/run/secrets/nextcloud_admin_user'
- 'NEXTCLOUD_ADMIN_PASSWORD_FILE=/run/secrets/nextcloud_admin_password'
- 'NEXTCLOUD_TRUSTED_DOMAINS=cloud.rustybever.be'
networks:
- default
- public
@ -46,6 +47,34 @@ services:
- 'data:/var/www/html/data'
- 'root:/var/www/html'
cron:
image: 'nextcloud:23.0.1-apache'
entrypoint: '/cron.sh'
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class.nextcloud==true'
environment:
- 'POSTGRES_DB=nextcloud'
- 'POSTGRES_USER=nextcloud'
- 'POSTGRES_PASSWORD=nextcloud'
- 'POSTGRES_HOST=db'
- 'REDIS_HOST=redis'
- 'NEXTCLOUD_ADMIN_USER_FILE=/run/secrets/nextcloud_admin_user'
- 'NEXTCLOUD_ADMIN_PASSWORD_FILE=/run/secrets/nextcloud_admin_password'
- 'NEXTCLOUD_TRUSTED_DOMAINS=cloud.rustybever.be'
secrets:
- nextcloud_admin_user
- nextcloud_admin_password
volumes:
- 'config:/var/www/html/config'
- 'data:/var/www/html/data'
- 'root:/var/www/html'
db:
image: 'postgres:14.2-alpine'