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
Docker containers:
nextcloud
: the Nextcloud serverpostgres
: the database used by Nextcloud to store its configuration
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
andPOSTGRES_PASSWORD
- Restart your nextcloud container with
docker-compose restart
- Open nextcloud at
localhost:8080
and login withNEXTCLOUD_ADMIN_USER
andNEXTCLOUD_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