Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nextcloud
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libre.sh
compose
nextcloud
Commits
bcbc8b36
Commit
bcbc8b36
authored
7 years ago
by
unteem
Browse files
Options
Downloads
Patches
Plain Diff
use autoconfig & add mail.config.php
parent
4d02d23d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+2
-0
2 additions, 0 deletions
Dockerfile
docker-compose.yml
+9
-1
9 additions, 1 deletion
docker-compose.yml
scripts/install
+5
-18
5 additions, 18 deletions
scripts/install
with
16 additions
and
19 deletions
Dockerfile
0 → 100644
+
2
−
0
View file @
bcbc8b36
FROM
nextcloud:12-fpm
COPY
mail.config.php /usr/src/nextcloud/config/
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
9
−
1
View file @
bcbc8b36
...
...
@@ -23,13 +23,21 @@ services:
-
back
-
lb_web
app
:
image
:
nextcloud:12-fpm
build
:
.
links
:
-
db
volumes
:
-
./data/apps:/var/www/html/apps
-
./data/custom_apps:/var/www/html/custom_apps
-
./data/config:/var/www/html/config
-
./data/data:/var/www/html/data
environment
:
-
MYSQL_DATABASE=nextcloud
-
MYSQL_HOST=db
-
MYSQL_USER=root
-
MYSQL_PASSWORD
-
NEXTCLOUD_ADMIN_PASSWORD
-
NEXTCLOUD_ADMIN_USER=indie
networks
:
-
back
db
:
...
...
This diff is collapsed.
Click to expand it.
scripts/install
+
5
−
18
View file @
bcbc8b36
#!/bin/bash -eux
mkdir
-
p
.
/
data
/
config
MYSQL_ROOT_PASSWORD
=
`tr -dc A-Za-z0-9_ < /dev/urandom | head -c 20 | xargs`
NEXTCLOUD_ADMIN_PASSWORD
=
`tr -dc A-Za-z0-9_ < /dev/urandom | head -c 20 | xargs`
echo
"MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}"
>
.
env
echo
"SUBNET=1"
>>
.
env
echo
"MYSQL_PASSWORD=${MYSQL_ROOT_PASSWORD}"
>>
.
env
echo
"NEXTCLOUD_ADMIN_PASSWORD=${MYSQL_ROOT_PASSWORD}"
>>
.
env
cat
>
.
/
data
/
config
/
config
.
php
<<
EOF
cat
>
mail
.
config
.
php
<<
EOF
<?
php
\
$CONFIG
=
array
(
'trusted_domains'
=>
array
(
0
=>
'${URL}'
,
),
'datadirectory'
=>
'/var/www/html/data'
,
'overwrite.cli.url'
=>
'https://${URL}'
,
'dbtype'
=>
'mysql'
,
'dbname'
=>
'owncloud'
,
'dbhost'
=>
'db:3306'
,
'dbtableprefix'
=>
'oc_'
,
'dbuser'
=>
'root'
,
'dbpassword'
=>
'${MYSQL_ROOT_PASSWORD}'
,
'theme'
=>
''
,
'maintenance'
=>
false
,
'mail_domain'
=>
'${MAIL_DOMAIN}'
,
'mail_from_address'
=>
'noreply.${URL}'
,
'mail_smtpmode'
=>
'smtp'
,
...
...
@@ -33,6 +21,5 @@ cat > ./data/config/config.php <<EOF
'mail_smtpname'
=>
'noreply.${URL}@${MAIL_DOMAIN}'
,
'mail_smtppassword'
=>
'${MAIL_PASS}'
,
'mail_smtpsecure'
=>
'tls'
,
'memcache.local'
=>
'\\OC\\Memcache\\APCu'
,
);
EOF
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment