From a1220581ade24edb9ff04e98869003833bc98d54 Mon Sep 17 00:00:00 2001 From: maxlath Date: Fri, 28 Apr 2023 11:41:08 +0200 Subject: [PATCH] readme: moving paragraph on rootless docker down as it makes the install flow more complex, and should thus rather be later tweaking of the install --- README.md | 52 +++++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index e88feb9..c1a837e 100644 --- a/README.md +++ b/README.md @@ -46,31 +46,6 @@ echo "module.exports = { NB: Those username and password should match the `COUCHDB_USER` and `COUCHDB_PASSWORD` environment variables set in `docker-compose.yml` -### Rootless Docker - -Docker Engine v20.10 is now available in rootless mode. If you would like to try it, you may follow the [official guide](https://docs.docker.com/engine/security/rootless/) (including command `export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock`). - -Start the inventaire install steps above, before installing dependencies, make sure that the owner of inventaire folder is the same as the owner inside the container. - -Delete `network_host` occurences from `docker-compose.yml` and adapt the `config/local.cjs` in consequence: - -```js -module.exports = { - protocol: 'http', - port: 3006, - host: 'inventaire', - db: { - username: 'couchdb', - password: 'password', - protocol: 'http', - hostname: 'couch' - }, - elasticsearch: { - host:'http://elasticsearch:9200' - } -} -``` - ## Usage ```sh @@ -173,6 +148,33 @@ mkdir /supervisor/path/to/inventaire ln -s /opt/ /supervisor/path/to/inventaire ``` +## Docker tips + +### Rootless Docker + +Docker Engine v20.10 is now available in rootless mode. If you would like to try it, you may follow the [official guide](https://docs.docker.com/engine/security/rootless/) (including command `export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock`). + +Start the inventaire install steps above, before installing dependencies, make sure that the owner of inventaire folder is the same as the owner inside the container. + +Delete `network_host` occurences from `docker-compose.yml` and adapt the `config/local.cjs` in consequence: + +```js +module.exports = { + protocol: 'http', + port: 3006, + host: 'inventaire', + db: { + username: 'couchdb', + password: 'password', + protocol: 'http', + hostname: 'couch' + }, + elasticsearch: { + host:'http://elasticsearch:9200' + } +} +``` + ## Troubleshooting ### Elasticsearch errors