The official ownCloud image has a PHP-FPM variant, but it still needs a web server to handle HTTP requests. This image provides an Nginx server ready to use as a owncloud:fpm
front-end.
The Nginx configuration in this image is based on the guidelines given by the ownCloud Documentation.
$ docker run --name some-nginx --link some-owncloud:owncloud --volumes-from some-owncloud -d -p 8080:80 raulr/nginx-owncloud
... via docker-compose
Example docker-compose.yml
:
owncloud:
image: owncloud:fpm
nginx:
image: raulr/nginx-owncloud
links:
- owncloud
volumes_from:
- owncloud
ports:
- "8080:80"
Run docker-compose up
, wait for it to initialize completely, and visit http://localhost:8080
or http://host-ip:8080
.