Updated nextcloud, removed the old password that shouldn't had been in there (new server built) and added .envs

This commit is contained in:
Ash Leece 2020-07-10 15:27:52 +01:00
parent 1e51ef86ba
commit 932408ad8b
3 changed files with 14 additions and 12 deletions

View File

@ -0,0 +1,3 @@
POSTGRES_USER=nextcloud
POSTGRES_PASSWORD=<changeme>
POSTGRES_DB=nextcloud

2
nextcloud/.env.example Normal file
View File

@ -0,0 +1,2 @@
PORT=<changeme>
NEXTCLOUD_TRUSTED_DOMAINS=<changeme>

View File

@ -2,28 +2,25 @@ version: '2'
volumes:
nextcloud:
db:
data:
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
image: postgres:latest
restart: unless-stopped
volumes:
- db:/var/lib/mysql
- data:/var/lib/postgresql/data
env_file: .env.db
environment:
- MYSQL_ROOT_PASSWORD=Xd9hx2Ew7a2WLXYT
- MYSQL_PASSWORD=JF2VuFvDcpp9VJEK
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- NEXTCLOUD_TRUSTED_DOMAINS=cloud.leece.im
- PGDATA=/var/lib/postgresql/data/pgdata
app:
image: nextcloud
nextcloud:
image: nextcloud:latest
ports:
- 8001:80
- ${PORT}:80
links:
- db
env_file: .env
volumes:
- nextcloud:/var/www/html
restart: unless-stopped