Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabriel-434/nextcloud-docker
The Docker Compose configuration for easily managing Nextcloud.
https://github.com/gabriel-434/nextcloud-docker
collaboraoffice docker docker-compose nextcloud
Last synced: 5 days ago
JSON representation
The Docker Compose configuration for easily managing Nextcloud.
- Host: GitHub
- URL: https://github.com/gabriel-434/nextcloud-docker
- Owner: Gabriel-434
- License: mit
- Created: 2023-12-15T22:24:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-02T19:16:01.000Z (11 months ago)
- Last Synced: 2024-10-31T17:44:57.466Z (about 2 months ago)
- Topics: collaboraoffice, docker, docker-compose, nextcloud
- Language: Shell
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dockerized Nextcloud
Nextcloud deployment made easy.## Why?
Well, I used deploying Nextcloud as an excuse (there is already an [official image](https://github.com/nextcloud/all-in-one)) to familiarize myself more with [Docker Compose](https://docs.docker.com/compose/) and its best practices.> [!WARNING]
> This deployment strategy and [the opitionated image](https://hub.docker.com/repository/docker/gabriel434/nextcloud/general) are not officially supported by Nextcloud GmbH.
> Use at your own risk!## Seamless Deployment
Copy the [dot env file template](.env.example) and populate it.
```sh
cp .env.example .env
```Create the `credentials` directory and the files that contain the [Docker Secrets](https://docs.docker.com/compose/compose-file/09-secrets/), then populate the credentials with secure passwords.
```sh
mkdir credentials# PostgreSQL database password
touch credentials/postgres_password.txt# The password of the Nextcloud admin user
touch credentials/nextcloud_admin_password.txt# Collabora Office administration password
touch credentials/collabora_password.txt
```If you want to [store files in another server](https://docs.docker.com/storage/volumes/#share-data-between-machines) or [use custom volume drivers](https://docs.docker.com/storage/volumes/#use-a-volume-driver), create the volume manually and set the external volume configuration on the environmental variables file.
```sh
# Example external volume using a nfs share
docker volume create --driver "local" \
--opt "type=nfs" \
--opt "o=addr=,rw" \
--opt "device=:" \
```Pull and start the containers in the [Docker Compose file](docker-compose.yml).
```sh
docker compose pulldocker compose up -d
```Thats it 🎉, now you have your own Nextcloud instance up and running.