- run container with named volume mount for
/opt/kimai/var
docker run -p 8001:8001 --rm --name=Kimai2 -v kimai_var:/opt/kimai/var KIMAIIMAGE
- run compose file
docker-compose up -d
- stop your container
- run new version and mount you named
/opt/kimai/var
volume into container
- stop all containers with compose
- change kimai image in compose file
- delete the kimai
source
volume (NOT THEvar
)
(this volume will only be used to share kimai source with the nginx webserver.
delete forces to recreate and use the new, updated kimai sources ) - restart your compose file