Updated nextcloud stack file
parent
058df79eec
commit
4523fb6532
|
@ -35,6 +35,7 @@ services:
|
||||||
- 'REDIS_HOST=redis'
|
- 'REDIS_HOST=redis'
|
||||||
- 'NEXTCLOUD_ADMIN_USER_FILE=/run/secrets/nextcloud_admin_user'
|
- 'NEXTCLOUD_ADMIN_USER_FILE=/run/secrets/nextcloud_admin_user'
|
||||||
- 'NEXTCLOUD_ADMIN_PASSWORD_FILE=/run/secrets/nextcloud_admin_password'
|
- 'NEXTCLOUD_ADMIN_PASSWORD_FILE=/run/secrets/nextcloud_admin_password'
|
||||||
|
- 'NEXTCLOUD_TRUSTED_DOMAINS=cloud.rustybever.be'
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
- public
|
- public
|
||||||
|
@ -46,6 +47,34 @@ services:
|
||||||
- 'data:/var/www/html/data'
|
- 'data:/var/www/html/data'
|
||||||
- 'root:/var/www/html'
|
- '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:
|
db:
|
||||||
image: 'postgres:14.2-alpine'
|
image: 'postgres:14.2-alpine'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue