From 47a008758df74aa9fe4542d8e06223c8c19512dc Mon Sep 17 00:00:00 2001 From: tmurray Date: Thu, 25 Jan 2024 18:43:50 -0600 Subject: [PATCH] Clairify some docker commands --- README.md | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f49b1b8..841cbef 100644 --- a/README.md +++ b/README.md @@ -29,13 +29,34 @@ As of this writing - it doesn't do anything to properly setup database or `makei (I think it will run a developer-staging setup as-is). This means you need to restore and load databases and `makeit.ini` from backups to work in production -Add a persistant volume to docker like: -`docker run --rm -it -v authitdata_devel:/opt/authit` - Set up a Persistant Volume like: `docker volume create authitdata_devel` -Then inspect persitant volume to find out where it's path is on your filesystem. Place the `makeit.ini`, `db` and `logdb` files in the persistent volume +Add a persistant volume to docker like: +`docker run --rm -it -v authitdata_devel:/opt/authit authbackend` + +Then inspect the persitant volume: + +``` +$ docker volume inspect authitdata_devel +[ + { + "CreatedAt": "2024-01-25T01:07:12Z", + "Driver": "local", + "Labels": null, + "Mountpoint": "/var/lib/docker/volumes/authitdata_devel/_data", + "Name": "authitdata_devel", + "Options": null, + "Scope": "local" + } +] +``` + +The `Mountpoint` key is the location of the volume on the host system. Then copy: + +* makeit.ini.example -> ${VOLUME}/makeit.ini +* ??? -> ${VOLUME}/db +* ??? -> ${VOLUME}/logdb Modify the `makeit.ini` file to point to the aforemented databases. Note that the Persitant Volume will mount to `/opt/makeit` - so make sure that is the "root" of the path you use - i.e. `/opt/makeit/db.sq3`