Created
November 13, 2019 07:50
-
-
Save BIGBALLON/29c7a56ce8aebe55ac99ed17572b69a1 to your computer and use it in GitHub Desktop.
docker-owncloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# uninstall old versions | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
# install latest versions | |
sudo apt-get update | |
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get update | |
sudo apt-get install docker-ce docker-ce-cli containerd.io -y | |
sudo docker run hello-world | |
# install docker-compose | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
# Create a new project directory | |
mkdir owncloud-docker-server | |
cd owncloud-docker-server | |
# Copy docker-compose.yml from the GitHub repository | |
wget https://raw.githubusercontent.com/owncloud/docs/master/modules/admin_manual/examples/installation/docker/docker-compose.yml | |
# Create the environment configuration file | |
cat << EOF > .env | |
OWNCLOUD_VERSION=10.3 | |
OWNCLOUD_DOMAIN=localhost | |
ADMIN_USERNAME=admin | |
ADMIN_PASSWORD=admin | |
HTTP_PORT=8080 | |
EOF | |
# Build and start the container | |
sudo docker-compose up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see https://doc.owncloud.com/server/admin_manual/installation/docker/