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 -ddocker-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 phpmyadmindocker-compose exec phpmyadmin hostname -i (example: 172.20.0.4)root, pass: rootpassword)
The database default name is nextcloudWant a quick smtp server to test emails on nextcloud ?
smtp.config.php file and change the domain by your domain
(make sure you've set your email in your nextcloud user account)Send test email button!Content type
Image
Digest
Size
230.3 MB
Last updated
about 5 years ago
docker pull skjnldsv/nextcloud-dev