Sign inSign up

michivonah/nextcloud

By michivonah

Updated about 3 years ago

A ready-to-use docker image for your nextcloud.

Image
0

203

michivonah/nextcloud repository overview

nextcloud-docker

A ready-to-use docker image for nextcloud

GitHub: https://github.com/michivonah/nextcloud-docker

Docker Hub: https://hub.docker.com/r/michivonah/nextcloud

Table of contents

Self host nextcloud with docker

Docker run

Run container

docker run -itd --name nextcloud michivonah/nextcloud

Run container with mariadb database

docker run

You're done! Now visit http://localhost:8080 in your browser and configure nextcloud

Docker compose

Copy following yml into a file called docker-compose.yml

version: '3.9'
services:
    app:
        container_name: nextcloud
        ports:
            - '8080:80'
        volumes:
            - '/path/to/directory:/var/www/html'
        restart: unless-stopped
        environment:
            - MEMORY_LIMIT=512M
        networks:
            - nextcloudNET
        image: michivonah/nextcloud
    db:
        container_name: mariadb
        volumes:
            - '/path/to/database:/var/lib/mysql'
        restart: unless-stopped
        environment:
            - MARIADB_ROOT_PASSWORD=nextcloud
            - MARIADB_DATABASE=nextcloud
            - MARIADB_USER=nextcloud
            - MARIADB_PASSWORD=nextcloud
        networks:
            - nextcloudNET
        image: mariadb
networks:
  nextcloudNET:
    name: nextcloudNET

Run following command to start up the containers

docker-compose up -d

You're done! Now visit http://localhost:8080 in your browser and configure nextcloud

Build docker image

Clone git repo

git clone https://github.com/michivonah/nextcloud-docker.git

Open directory

cd nextcloud-docker

Build image

docker build -t nextcloud-docker:latest .

Run container

docker run

Please note that you need a running mariadb instance

Sources

Tag summary

Content type

Image

Digest

sha256:7008e3f4f

Size

382.1 MB

Last updated

about 3 years ago

docker pull michivonah/nextcloud