Docker setup for ownCloud
·
Report Bug
·
Request Feature
Small docker setup for ownCloud. The production environment also uses jwilder/nginx-proxy and nginx-proxy/docker-letsencrypt-nginx-proxy-companion.
To get a local copy up and running follow these simple steps.
- Clone the repo
git clone https://github.com/beuluis/owncloud.git
- Start docker-compose
docker-compose up --build
- Navigate to
localhost:3308
- Follow setup instructions
- Create a
.env
file
touch .env
- Overwrite variables as you like (format:
{variable name}={variable value}
)
Variable | Description | Default value | Required |
---|---|---|---|
DOMAIN |
ownCloud domain | localhost |
false |
OC_ADMIN_USERNAME |
ownCloud admin username | owncloudDev |
false |
OC_ADMIN_PASSWORD |
ownCloud admin password | 7okaKiH6a9km |
false |
PORT |
Which port is mapped to your host machine | 3308 |
false |
DB_DATABASE |
Maria DB name | owncloudDev |
false |
DB_USER |
Maria user | owncloudDev |
false |
DB_PASSWORD |
Maria password | 8j38ppKnKNph |
false |
To get a copy up and running follow these simple steps.
- Clone the repo
git clone https://github.com/beuluis/owncloud.git --branch master
- Create a
.env.prod
file
touch .env.prod
- Overwrite all variables marked under Customization as required
- Start docker-compose
docker-compose --env-file ./.env.prod -f docker-compose.yml -f docker-compose.production.yml up -d
- Navigate to
https://{your-host}
- Follow setup instructions
- Create a
.env.prod
file
touch .env.prod
- Overwrite variables as you like (format:
{variable name}={variable value}
)
Variable | Description | Default value | Required |
---|---|---|---|
HOST |
Host which your container should be accessible. E.g. test.com |
none | true |
PROXY_NETWORK_NAME |
Proxy network name | nginxproxynet |
false |
OC_ADMIN_USERNAME |
ownCloud admin username | none | true |
OC_ADMIN_PASSWORD |
ownCloud admin password | none | true |
DB_DATABASE |
Maria DB name | owncloudProd |
false |
DB_USER |
Maria user | owncloudProd |
false |
DB_PASSWORD |
Maria password | none | true |
docker-compose exec {CONTAINER_NAME} occ maintenance:mode --on
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Luis Beu - [email protected]