# Install ownCloud in Docker with Docker Compose **Published by:** [James](https://paragraph.com/@james-47/) **Published on:** 2024-02-05 **URL:** https://paragraph.com/@james-47/install-owncloud-in-docker-with-docker-compose ## Content In this tutorial, we'll walk through the steps to install ownCloud in Docker using a Docker Compose file for easy cloud storage and file sharing. Let's get started!Step 1: Create a project directoryFirst, create a new project directory for ownCloud:mkdir owncloud-docker-server cd owncloud-docker-server Step 2: Copy the Docker Compose fileNext, copy the Docker Compose file from the ownCloud documentation repository:wget https://raw.githubusercontent.com/owncloud/docs-server/master/modules/admin_manual/examples/installation/docker/docker-compose.yml This file contains the configuration settings for the ownCloud Docker container, including the MariaDB and Redis containers.Step 3: Create the environment configuration fileCreate an environment configuration file named .env in the project directory with the following contents:cat << EOF > .env OWNCLOUD_VERSION=10.11 OWNCLOUD_DOMAIN=localhost:8080 OWNCLOUD_TRUSTED_DOMAINS=localhost ADMIN_USERNAME=admin ADMIN_PASSWORD=admin HTTP_PORT=8080 EOF This sets the required configuration settings for ownCloud, including the version, domain name, trusted domains, admin username and password, and HTTP port.Step 4: Build and start the ownCloud containerBuild and start the ownCloud container using the following command:docker-compose up -d This will download the required Docker images, build the ownCloud Docker image, and start the container in detached mode. You can then access the ownCloud web interface by visiting http://localhost:8080 in your web browser. The admin username and password you set in the .env file will be used to log in to the web interface. That's it! You've successfully installed ownCloud in Docker using a Docker Compose file. You can now use it to store and share files in the cloud. ## Publication Information - [James](https://paragraph.com/@james-47/): Publication homepage - [All Posts](https://paragraph.com/@james-47/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@james-47): Subscribe to updates