diff --git a/doc/docker/development/README.md b/doc/docker/development/README.md index 4ebd8c7b6c..e6fcc4727f 100644 --- a/doc/docker/development/README.md +++ b/doc/docker/development/README.md @@ -64,5 +64,13 @@ service: * db volume must NOT be a directory, as the networked access from Docker VM to Windows is to slow! ### Docker on Linux -* permissions of sources and data directory must be readable (sources writable) by www-data user (#33) +* to run docker(-compose) commands with your regular user either + - prefix them with ```sudo``` or + - add yourself to the ```docker``` group: ```sudo usermod -aG docker $USER``` and then run ```newgrp docker``` everytime you open a terminal +* permissions of sources directory need to be changed after install: ```chown -R $USER sources``` +* permissions of data directory must be readable and writable by www-data user (#33) +* do not use ```http://localhost/egroupware/```, as push, Collabora and Rocket.Chat will not be able to communicate + - localhost in each container is NOT the host system, but the container itself! + - give you development system a name and add it to the hosts ```/etc/hosts``` as: ```127.0.0.1 devbox.egroupware.org``` + - add it as ```extra_host: - "devbox.egroupware.org:172.17.0.1"``` to each service which as a commented out extra_host diff --git a/doc/docker/development/docker-compose.yml b/doc/docker/development/docker-compose.yml index 5a292c2ad4..8c08fd46eb 100644 --- a/doc/docker/development/docker-compose.yml +++ b/doc/docker/development/docker-compose.yml @@ -141,6 +141,7 @@ services: - "4443:443" depends_on: - egroupware + - push - collabora-key - rocketchat container_name: egroupware-nginx @@ -166,6 +167,8 @@ services: - sessions:/var/lib/php/sessions - push-config:/var/lib/egroupware-push container_name: egroupware-push + depends_on: + - egroupware # automatic updates of all containers daily at 4am # see https://containrrr.github.io/watchtower for more information