mirror of
https://github.com/tiyn/wiki.git
synced 2025-10-10 09:51:22 +02:00
restructuring to wiki-repo
This commit is contained in:
28
docker/owncloud/docker-compose.yml
Normal file
28
docker/owncloud/docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
|
||||
owncloud:
|
||||
image: owncloud
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 80:80
|
||||
volumes:
|
||||
- owncloud:/var/www/html
|
||||
- config:/var/www/html/config
|
||||
|
||||
mariadb:
|
||||
image: mariadb
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: pass
|
||||
volumes:
|
||||
- mariadb:/var/lib/mysql
|
||||
|
||||
volumes:
|
||||
owncloud:
|
||||
driver: local
|
||||
mariadb:
|
||||
driver: local
|
||||
config:
|
||||
driver: local
|
38
docker/owncloud/readme.md
Normal file
38
docker/owncloud/readme.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# Owncloud
|
||||
This is a dockerized version of an owncloud server.
|
||||
The official container and documentation was made by [owncloud](https://hub.docker.com/_/owncloud).
|
||||
This docker-rebuild is made up by a ```docker-compose.yml``` file.
|
||||
The services in this files are explained seperately.
|
||||
|
||||
## Owncloud
|
||||
|
||||
### Volumes
|
||||
Set the following volumes in the ```volumes:``` section of the docker-compose file.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ---------------- | ---------------------- | ---------------------------- |
|
||||
| owncloud | /var/www/html | storage for owncloud plugins |
|
||||
| config | /var/www/html/config | storage for owncloud config |
|
||||
|
||||
### Ports
|
||||
Set the following ports in the ```ports:``` section.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ----------- |
|
||||
| 80 | 80 | TCP | WebUI |
|
||||
|
||||
## Maria DB
|
||||
|
||||
### Environment-variables
|
||||
Set the following environment-variables in the ```environment:``` section of the docker-compose file.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| ------------------- | ---------------------------- | ------- |
|
||||
| MYSQL_ROOT_PASSWORD | set the mysql admin password | |
|
||||
|
||||
### Volumes
|
||||
Set the following volumes in the ```volumes:``` section of the docker-compose file.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ---------------- | ---------------------- | ---------------------------- |
|
||||
| mariadb | /var/lib/mysql | storage for owncloud data |
|
5
docker/owncloud/rebuild.sh
Executable file
5
docker/owncloud/rebuild.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
docker-compose down
|
||||
docker pull owncloud
|
||||
docker pull mariadb
|
||||
docker-compose up -d
|
Reference in New Issue
Block a user