Skip to content

coletivoEITA/rios-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Languages avaliable

🇧🇷

NextCloud with SSL and Docker

Before first run

Edit the .env file to set your database password.

Create a network

docker network create reverse-proxy

Edit the docker-compose.yml and docker-compose.proxy.yml and change the environments to your necessity:

Environment service
VIRTUAL_HOST web
LETSENCRYPT_HOST web
LETSENCRYPT_EMAIL web
DEBUG nginx-letsencrypt

PS: Let's Encrypt only work in servers when the VIRTUAL_HOST and LETSENCRYPT_HOST have a valid public domain registered in a DNS server. Don't try to use in localhost, don't work!

After setup

After finish the setup, access this url: https://localhost/settings/admin/overview.

If is necessary run any occ command, run like this:

docker-compose exec -u www-data app ./occ db:add-missing-indices
docker-compose exec -u www-data app ./occ db:convert-filecache-bigint

PHP custom settings

If you need custom settings in PHP, change the file .docker/app/config/php.ini.

Run

docker-compose up -d
docker-compose -f docker-compose.proxy.yml up -d

Use a specific version of NextCloud

Change the Dockerfile in line 1 and put your prefered version of NextCloud.

Build the images, down the containers and get up again:

docker-compose build
docker-compose down
docker-compose up -d

If you want to see the changes, run:

docker-compose logs -ft

You will see this message in the logs and other many upgrade messages:

app_1      | 2020-04-28T19:49:38.568623133Z Initializing nextcloud 18.0.4.2 ...
app_1      | 2020-04-28T19:49:38.577733913Z Upgrading nextcloud from 18.0.3.0 ...

About

☁️ NextCloud with SSL and Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 81.7%
  • Dockerfile 11.6%
  • Shell 6.7%