all-in-one/php
Simon L. a037be95c7
Some checks failed
Codespell / Check spelling (push) Waiting to run
Docker Lint / docker-lint (push) Has been cancelled
Lint php / php-lint (push) Has been cancelled
PHP Deprecation Detector / PHP Deprecation Detector (push) Has been cancelled
Playwright Tests on push / test (push) Has been cancelled
Static analysis / static-psalm-analysis (push) Has been cancelled
Twig Lint / twig-lint (push) Has been cancelled
Lint php / php-lint-summary (push) Has been cancelled
fix remaining rename of collabora to Nextcloud Office
Signed-off-by: Simon L. <szaimen@e.mail.de>
2026-01-30 09:51:08 +01:00
..
data
public Lower case method names in ConfigurationManager 2026-01-28 16:51:36 +01:00
session
src only allow to set APACHE_ADDITIONAL_NETWORK via environmental variable and do not restore it on backup restore 2026-01-30 09:20:00 +01:00
templates fix remaining rename of collabora to Nextcloud Office 2026-01-30 09:51:08 +01:00
tests increase timeout for backup restore 2026-01-29 09:54:34 +01:00
composer.json
composer.lock php dependency updates 2026-01-28 12:03:53 +00:00
containers-schema.json
containers.json insert the AIO version into Nextcloud's system config 2026-01-28 15:17:15 +01:00
cool-seccomp-profile.json collabora: load seccomp profile on the fly 2025-11-05 12:08:47 +01:00
domain-validator.php
get-configurable-aio-variables.sh fix get-configurable-aio-variables.sh script 2026-01-28 13:28:07 +01:00
psalm-baseline.xml Update psalm baseline 2026-01-06 04:23:38 +00:00
psalm.xml Make psalm accept the property-hooks for virtual attributes 2026-01-28 11:51:56 +01:00
README.md

PHP Docker Controller

This is the code for the PHP Docker controller.

How to run

Running this locally requires :

1. Install the development environment

This project uses Composer as dependency management software. It is very similar to NPM. The command to install all dependencies is:

composer install

2. Access to docker socket

The root user has all privileges including access to the Docker socket. But it is not recommended to launch the local instance with full privileges, consider the docker group for docker access without being root. See https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user

3. Run a nextcloud-aio-mastercontainer container

This application manages containers, including its own container. So you need to run a nextcloud-aio-mastercontainer container for the application to work properly.

Here is a command to quickly launch a container :

docker run \
--rm \
--name nextcloud-aio-mastercontainer \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock \
ghcr.io/nextcloud-releases/all-in-one:latest

4. Start your server

With this command you will launch the server:

# Make sure to launch this command with a user having access to the docker socket.
SKIP_DOMAIN_VALIDATION=true composer run dev

You can then access the web interface at http://localhost:8080.

Note: You can restart the server by preceding the command with other environment variables.

Composer routine

Command Description
composer run dev Starts the development server
composer run psalm Run Psalm static analysis
composer run psalm:strict Run Psalm static analysis strict
composer run psalm:update-baseline Run Psalm with --update-baseline arg
composer run lint Run PHP Syntax check
composer run lint:twig Run Twig Syntax check
composer run php-deprecation-detector Run PHP Deprecation Detector