forked from HidoraSwiss/manifest-nextcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.jps
71 lines (55 loc) · 1.73 KB
/
manifest.jps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
type: install
version: 1.4
name: Nextcloud
categories: ["apps/file-management", "apps/popular", "apps/file-manager"]
appVersion: 12
displayName: Nextcloud
homepage: https://github.com/HidoraSwiss/manifest-nextcloud
logo: https://raw.githubusercontent.com/HidoraSwiss/manifest-nextcloud/master/images/nextcloud-round.png
description: |
Nextcloud puts your data at your fingertips, under your control. Store your documents, calendar, contacts and photos on your Jelastic plateform.
More info on [https://nextcloud.com/](https://nextcloud.com/)
ssl: true
globals:
DB_PASSWORD: ${fn.password(10)}
nodes:
- nodeType: nginx
nodeGroup: bl
count: 1
skipNodeEmails: true
- image: nextcloud
count: 1
cloudlets: 16
nodeGroup: cp
volumes:
- /var/www/html/data
- /var/www/html
skipNodeEmails: true
env:
MYSQL_PASSWORD: ${globals.DB_PASSWORD}
MYSQL_DATABASE: nextclouddb
MYSQL_USER: root
MYSQL_HOST: sqldb
- nodeType: mysql
nodeGroup: sqldb
count: 1
cloudlets: 16
skipNodeEmails: true
onInstall:
- reset-db-password
- config-backup-db
actions:
reset-db-password :
- log: configuration Password MariaDB
- cmd[sqldb]:
- jem passwd set -p "${globals.DB_PASSWORD}"
user: root
config-backup-db :
- log: configuration Backup database
- cmd[sqldb]:
- echo "0 2 * * * /var/lib/jelastic/bin/backup_script.sh -m dumpall -c 7 -u root -p ${globals.DB_PASSWORD}" >> /var/spool/cron/mysql
success: |
## [Nextcloud](${env.url}) is ready
**Username**: admin
**Password**: ${user.appPassword}
**It can take few minutes before to be able to open Nexctloud for the first time**