Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amancevice/nextcloud-heroku
Deploy nextcloud on heroku
https://github.com/amancevice/nextcloud-heroku
Last synced: 17 days ago
JSON representation
Deploy nextcloud on heroku
- Host: GitHub
- URL: https://github.com/amancevice/nextcloud-heroku
- Owner: amancevice
- License: mit
- Created: 2017-11-23T17:55:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-05T13:29:33.000Z (almost 7 years ago)
- Last Synced: 2024-10-10T04:07:55.645Z (about 1 month ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 14
- Watchers: 3
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nextcloud on Heroku
Deploy your own [Nextcloud](https://nextcloud.com) instance on [Heroku](https://heroku.com).
## Docker Compose
Use `docker-compose` to deploy Nextcloud locally:
```bash
docker-compose up -d
# Wait for MySQL/Nextcloud to start...
open http://localhost:8000
```## Heroku
Follow the instructions on Heroku's [Container Registry & Runtime](https://devcenter.heroku.com/articles/container-registry-and-runtime) for creating a new heroku app.
### MySQL Add-on
Add a MySQL add-on to your app. This will contain your Nextcloud backend.
JawsDB:
```bash
heroku addons:create jawsdb:kitefin
```ClearDB:
```bash
heroku addons:create cleardb:ignite
```Once the add-on is ready, take note of the connection details.
### Configuration
You will need to set config variables to allow Nextcloud to connect to the MySQL backend as well as the Nextcloud administrator login info.
Set the following config variables in your app:
```bash
heroku config:set MYSQL_DATABASE=
heroku config:set MYSQL_HOST=
heroku config:set MYSQL_PASSWORD=
heroku config:set MYSQL_USER=
heroku config:set NEXTCLOUD_ADMIN_PASSWORD=
heroku config:set NEXTCLOUD_ADMIN_USER=
```### Deploy
Login to the Heroku container registry:
```bash
heroku container:login
```Build & push the image to your app:
```bash
heroku container:push web
```