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