From 1b34dfaa87e0940b3de4eeb48a33e293e71c0451 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 8 Sep 2021 23:40:06 +0000 Subject: [PATCH] updated README.md --- codepot/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/codepot/README.md b/codepot/README.md index a6677cb9..630ea35b 100644 --- a/codepot/README.md +++ b/codepot/README.md @@ -37,6 +37,17 @@ $ /usr/sbin/codepot-user enable username You can use the created user account to sign in to codepot and start creating a new project. +If you like to keep the data persistenly on the docker host, map /var/lib/codepot to a local +directory or a volume on the host when starting the container. + +``` +$ docker run -dit --restart unless-stopped --name codepot -p 7000:80 -v ${HOME}/codepot-data:/var/lib/codepot hyunghwan/codepot:ubnt20.04 +``` + +If you run this command, codepot stores all data under ${HOME}/codepot-data from the host +perspective. The master configuration file is placed in ${HOME}/codepot-data. You may +edit ${HOME}/codepot-data/codepot.ini for configuration changes without entering the container. + ## INSTALLATION ON CENTOS A RPM package is provided for RedHat/CentOS Linux. The RPM package specifies