File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ services:
1818 condition : on-failure
1919 ports :
2020 - " 8000:8000"
21+ volumes :
22+ - lnt_data:/var/lib/lnt
23+ - lnt_config:/etc/lnt
2124
2225 db :
2326 container_name : lnt-postgres
@@ -26,3 +29,7 @@ services:
2629 - POSTGRES_PASSWORD=${DB_PWD}
2730 - POSTGRES_USER=${DB_USER:-lntuser}
2831 - POSTGRES_DB=${DB_BASE:-lnt}
32+
33+ volumes :
34+ lnt_data :
35+ lnt_config :
Original file line number Diff line number Diff line change 33DB_PATH=${DB_ENGINE:- postgresql} ://${DB_USER:- lntuser} :${DB_PWD:? } @${DB_HOST:? }
44DB_BASE=${DB_BASE:- lnt}
55
6- if [ ! -r /etc/lnt.cfg ]; then
6+ if [ ! -r /etc/lnt/lnt .cfg ]; then
77 DB_BASE_PATH=" ${DB_PATH} /${DB_BASE} " wait_db
8- lnt create /var/lib/lnt \
9- --config /etc/lnt.cfg \
8+ lnt create /var/lib/lnt/instance \
9+ --config /etc/lnt/lnt .cfg \
1010 --wsgi lnt_wsgi.py \
1111 --tmp-dir /tmp/lnt \
1212 --db-dir " ${DB_PATH} " \
1313 --default-db " ${DB_BASE} "
1414 if [ -n " ${LNT_AUTH_TOKEN:- } " ]; then
15- sed -i " s/# \(api_auth_token =\).*/\1 '${LNT_AUTH_TOKEN} '/" /etc/lnt.cfg
15+ sed -i " s/# \(api_auth_token =\).*/\1 '${LNT_AUTH_TOKEN} '/" /etc/lnt/lnt .cfg
1616 fi
1717fi
1818
19- cd /var/lib/lnt
19+ cd /var/lib/lnt/instance
2020exec gunicorn lnt_wsgi:application \
2121 --bind 0.0.0.0:8000 \
2222 --workers 8 \
You can’t perform that action at this time.
0 commit comments