https://github.com/longsleep/docker-fpm-nextcloud
Run PHP-FPM for Nextcloud in Docker
https://github.com/longsleep/docker-fpm-nextcloud
Last synced: over 1 year ago
JSON representation
Run PHP-FPM for Nextcloud in Docker
- Host: GitHub
- URL: https://github.com/longsleep/docker-fpm-nextcloud
- Owner: longsleep
- Created: 2016-08-16T12:33:27.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-13T07:57:44.000Z (almost 10 years ago)
- Last Synced: 2025-02-03T14:46:39.650Z (over 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Nextcloud PHP-FPM container
A minimal Docker container, providing exposed PHP-FPM to simplify Nextcloud development.
## Build image
```bash
docker build -t docker-fpm-nextcloud .
```
## Run container
This repos is lacking some serious docs. Basic idea is to clone Nextcloud into `pwd`/nextcloud-server and run this Docker container on top of it via volume mount. It exposes PHP-FPM on port 9000/tcp which then can be used as normal with a frontent webserver as fastcgi proxy.
```bash
docker run --rm --name my-nextcloud-dev -p 9000:9000 -v `pwd`/nextcloud-server:/srv/www -i -t docker-fpm-nextcloud
```
## Permissions
Nextcloud needs write permissions to certain folders. When using the volume
mount this can be easily archived with the following insecure commands.
```bash
chmod -R 777 nextcloud-server/config/
chmod -R 777 nextcloud-server/data/
```
This makes stuff world writable - do not use on production machines!