A nextcloud development stack
AGPL-3.0 License
This is a php docker designed to be used with the compose file present in this repository. This is not designed to be a quick dev setup on the fly, but rather a semi-permanent setup. π» Built-in: phpunit, ldap, gd, imagick, APCu, redis, memcached...
We basically use the same nginx config than the documentation: https://docs.nextcloud.com/server/stable/admin_manual/installation/nginx.html Only the php-handler server is changed to the php container
git clone [email protected]:nextcloud/server.git
server
folder, update the 3rdparty submodule: git submodule update --init
cd server
git submodule update --init
cd ..
docker-compose up -d
docker-compose.yml
file, check for the omgwtfssl service.$ docker-compose exec web hostname -i
172.20.0.3
We use mariadb by default. If you don't want it, you can:
MYSQL
environment params of the php service in the compose fileYou can run any occ command with docker (example: upgrade)
$ docker-compose exec --user=docker php php occ upgrade
You can run the test you want with phpunit bootstrap
$ docker-compose exec --user=docker php phpunit --bootstrap tests/bootstrap.php tests/Core/Controller/ClientFlowLoginControllerTest.php
Or the full suite:
$ docker-compose exec php phpunit --configuration tests/phpunit-autotest.xml
If you used the default setup with mariadb, you can enable phpmyadmin directly.
docker-compose
filedocker-compose start phpmyadmin
docker-compose exec phpmyadmin hostname -i
(example: 172.20.0.4)root
, pass: rootpassword
)Want a quick smtp server to test emails on nextcloud ?
smtp.config.php
file and change the domain by your domainSend test email
button!git clone https://github.com/nextcloud/viewer.git
in the apps2 directory