maintained by MarvAmBass
FAQ - All you need to know about the marvambass Containers
This Dockerfile (available as marvambass/owncloud) gives you a completly secure owncloud.
It's based on the marvambass/nginx-ssl-php Image
View in Docker Registry marvambass/owncloud
View in GitHub MarvAmBass/docker-owncloud
OwnCloud Install Settings
OwnCloud Database Settings
OwnCloud Admin Settings
OwnCloud Site Settings
First you need a running MySQL Container (you could use: marvambass/mysql).
You need to --link your mysql container to marvambass/owncloud with the name mysql
docker run -d -p 443:443 --link mysql:mysql --name owncloud marvambass/owncloud
You can use Fail2ban to block bruteforce password attacks.
In order to use Fail2ban you need to make your owncloud.log available on the outside. This may be the regular case if you mapped /owncloud/data to the outside.
Now we need to create a new Fail2ban Filter to recognise bruteforce attacks on owncloud. There are two kinds of Filters needed, which depends on your configuration.
owncloud is directly available
/etc/fail2ban/filter.d/docker-owncloud-direct.conf
[Definition]
failregex={.*Login failed:.*IP: '<HOST>',.*"}
ignoreregex =
owncloud is behind reverse proxy
/etc/fail2ban/filter.d/docker-owncloud-proxied.conf
[Definition]
failregex={.*Login failed:.*X-Forwarded-For: '<HOST>'.*"}
ignoreregex =
/etc/fail2ban/jail.d/docker-owncloud.conf
[docker-owncloud-direct]
enabled = false
port = http,https
filter = docker-owncloud-direct
logpath = /var/docker-owncloud/data/owncloud.log
maxretry = 3
[docker-owncloud-proxied]
enabled = false
port = http,https
filter = docker-owncloud-proxied
logpath = /var/docker-owncloud/data/owncloud.log
maxretry = 3
Just enable the suitable rule, check if the logpath is right you may also change maxretry and port to your needs.
Restart Fail2ban and that's all!
Content type
Image
Digest
sha256:e174ee266…
Size
330.7 MB
Last updated
almost 11 years ago
docker pull marvambass/owncloud