Compare commits

...

2 Commits

Author SHA1 Message Date
5e5707e170 Customize base docker-compose file. 2019-07-03 11:28:20 -05:00
ec0ba67333 Update readme. 2019-07-03 11:28:14 -05:00
2 changed files with 45 additions and 1 deletions

View File

@ -1,3 +1,20 @@
# nextcloud-docker
hosting nextcloud for awful.club members
## changes you should make
all of those instances of 'nextcloud' in the enviornment variables you should definitely change, those are fake.
## ports
i forward the host port of 8080 to the container. i map port 'cloud.awful.club:80' to port 8080 through nginx.
## upgrading
for the love of god do not fucking upgrade your nextcloud instance, jesus christ that is a fucking mistake.
- restoring mysql backups is so fucking fraught.
- nextcloud's domain specific knowledge about how to do this is fractured and everywhere. cannot recommend
- i had a straight up better time with just building a new instance, dumping new data into the proper directory, and forcing nextcloud to rescan it.
## volumes
i prefer to mount persistant volumes (in digital ocean) to be my docker stores. it makes backups harder (volumes aren't backed up through the same mechanism as hosts) but it makes mobility easier; i can move volumes around to any host i want.
long term though i think this is definitly gonna change.

27
docker-compose.yml Normal file
View File

@ -0,0 +1,27 @@
version: '2'
volumes:
nextcloud:
db:
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- /mnt/shared_document_store/nextcloud/sql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=nextcloud
- MYSQL_PASSWORD=nextcloud
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
ports:
- 8080:80
links:
- db
volumes:
- /mnt/shared_document_store/nextcloud/html/:/var/www/html/