Added initial working nextcloud config

pull/3/head
Jef Roosens 2021-01-05 12:58:45 +01:00
parent eee1de9a36
commit 102aaa59e4
3 changed files with 31 additions and 6 deletions

View File

@ -0,0 +1,3 @@
POSTGRES_DB=nextcloud
POSTGRES_USER=nextcloud
POSTGRES_PASSWORD=pass

View File

@ -16,23 +16,23 @@ services:
- 'default'
- 'nginx'
volumes:
- 'root:/var/www/html'
- 'data:/var/www/html/data'
- 'config:/var/www/html/config'
- 'data:/var/www/html/data'
- 'root:/var/www/html'
cron:
image: 'nextcloud:20-apache'
restart: 'always'
entrypoint: '/cron.sh'
restart: 'always'
depends_on:
- 'app'
labels:
- 'com.centurylinklabs.watchtower.enable=true'
volumes:
- 'root:/var/www/html'
- 'data:/var/www/html/data'
- 'config:/var/www/html/config'
- 'data:/var/www/html/data'
- 'root:/var/www/html'
db:
image: 'postgres:13-alpine'
@ -57,6 +57,7 @@ networks:
external: true
volumes:
root:
config:
data:
db-data:
root:

View File

@ -0,0 +1,21 @@
# Database
POSTGRES_DB=nextcloud
POSTGRES_USER=nextcloud
POSTGRES_PASSWORD=pass
POSTGRES_HOST=db
# Redis
REDIS_HOST=redis
# Admin Settings
NEXTCLOUD_ADMIN_USER=root
NEXTCLOUD_ADMIN_PASSWORD=changeme
# Not sure if this one is needed
APACHE_DISABLE_REWRITE_IP=1
# Allow usage with nginx container
TRUSTED_PROXIES=nginx
# Put the URL of your nextcloud instance here
NEXTCLOUD_TRUSTED_DOMAINS=