Skip to content
This repository was archived by the owner on Sep 4, 2019. It is now read-only.

Conversation

@nicolailang
Copy link
Owner

nicolailang and others added 30 commits November 30, 2018 15:59
…ocker host (#110)

* Added support for configuring listener port on docker host and instructions for running on Synology DSM Nas
Add reload instructions to further options
- automatically create .env file
* Ability to set SSL_POLICY

* SSL_POLICY for docker-compose-multiple-networks.yml
Update bash init script
this will be a submodule
evertramos and others added 28 commits September 6, 2021 12:56
`networks.<name>.name` is only valid for compose v3.5 and above
* I added support for Docker Rootless.

This has been possible by adding the possibility to bind the docker.sock to the user's current $XDG_RUNTIME_DIR, which is found in the user's .bashrc file, that he added after installing docker rootless, by following the instructions from the official documentation (https://docs.docker.com/engine/security/rootless/) to run the Docker Daemon as a non-root user.

To achieve this, I made the following changes:
1) I added the DOCKER_HOST_ROOTLESS_PATH= variable inside the .env.sample file.
2) I updated in the two required lines of the docker-compose.yml file, the following: ${DOCKER_HOST_ROOTLESS_PATH:-/var/run/docker.sock}  , instead of /var/run/docker.sock:/tmp/docker.sock:ro, so that this fixes the "Error: you need to share your Docker host socket with a volume at /var/run/docker.sock. Typically you should run your container with: '-v /var/run/docker.sock:/var/run/docker.sock:ro'" error when using docker rootless.
3) I attempted to update the MD5 of both the .env.sample & docker-compose.yml file [PLEASE CHECK]
4) I updated the usage text in the usage-fresh-start.sh file, so that the user can notice this optional flag: either "-dr" or "--docker-rootless"
5) I updated the update-env-new-site-variables.sh to update the .env DOCKER_HOST_ROOTLESS_PATH to set the user's current $XDG_RUNTIME_DIR, in case the "-dr" flag has been specified. Otherwise, this is left blank and no further action is done.
6) I updated the fresh-start.sh file to take into account the "-dr" flag.

Shouldn't the "-dr" flag be specified, the programme should continue normally.

* Fixed an important typo in docker-compose.yml

* Updated the docker-compose.yml file md5 sum

Co-authored-by: Evert Ramos <[email protected]>
@evertramos evertramos deleted the branch nicolailang:master March 8, 2023 21:21
@evertramos evertramos deleted the master branch March 8, 2023 21:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.