https://github.com/ezy/nextcloud-pg-docker
Setup nextcloud using docker-compose with postgres in a few simple steps
https://github.com/ezy/nextcloud-pg-docker
docker docker-compose nextcloud nextcloud-docker nextcloud-server postgres
Last synced: about 2 months ago
JSON representation
Setup nextcloud using docker-compose with postgres in a few simple steps
- Host: GitHub
- URL: https://github.com/ezy/nextcloud-pg-docker
- Owner: ezy
- Created: 2019-06-21T05:01:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-27T02:25:08.000Z (over 6 years ago)
- Last Synced: 2025-10-23T01:49:38.402Z (4 months ago)
- Topics: docker, docker-compose, nextcloud, nextcloud-docker, nextcloud-server, postgres
- Homepage:
- Size: 482 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Nextcloud with Postgres from docker-compose
This repository contains a Docker compose file which can be used to easily create a Nextcloud instance connected to pg.
- Fully-featured Nextcloud instance backed by a Postgres database
- All volume data stored locally

## Architecture
Docker containers:
- `nextcloud`: the Nextcloud server
- `postgres`: the database used by Nextcloud to store its configuration
## Usage
Follow the steps below to get nextcloud running in docker on localhost
- Configure the .env files with the creds for your postgres db and admin user
- Run `docker-compose up` then connect to your postgres instance
- Create your user as per `POSTGRES_USER` and `POSTGRES_PASSWORD`
- Restart your nextcloud container with `docker-compose restart`
- Open nextcloud at `localhost:8080` and login with `NEXTCLOUD_ADMIN_USER` and `NEXTCLOUD_ADMIN_PASSWORD`
- Nextcloud should prompt you to login and setup all the db stuff for you
Run on your server without shell:
```
$ docker-compose up -d
```