finalize docker setup
now fully works via docker \o/
This commit is contained in:
parent
4fa80aa8c7
commit
7f17d4c29e
@ -1,12 +1,8 @@
|
|||||||
# HOW TO:
|
# HOW TO:
|
||||||
#
|
#
|
||||||
# docker build -t porom:latest .
|
|
||||||
#
|
|
||||||
# Then run the container:
|
|
||||||
#
|
|
||||||
# docker compose up
|
# docker compose up
|
||||||
#
|
#
|
||||||
# NOTE: not working yet. i get an error that the db is read-only :(
|
# it exposes the data/ and secrets/ volumes in app root
|
||||||
#
|
#
|
||||||
FROM openresty/openresty:alpine-fat
|
FROM openresty/openresty:alpine-fat
|
||||||
|
|
||||||
|
1
start.sh
1
start.sh
@ -15,6 +15,7 @@ first_launch() {
|
|||||||
touch "secrets/.touched.$LAPIS_ENVIRONMENT"
|
touch "secrets/.touched.$LAPIS_ENVIRONMENT"
|
||||||
mkdir -p data/db
|
mkdir -p data/db
|
||||||
luajit schema.lua
|
luajit schema.lua
|
||||||
|
chmod -R a+rw data
|
||||||
lapis migrate
|
lapis migrate
|
||||||
luajit create_default_accounts.lua
|
luajit create_default_accounts.lua
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user