Create persistent emoji mount (Fixes #8)
This commit is contained in:
parent
caf0252937
commit
9398a1b816
@ -1,2 +1,3 @@
|
|||||||
data/
|
data/
|
||||||
cache/
|
cache/
|
||||||
|
emoji/
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
data/
|
data/
|
||||||
cache/
|
cache/
|
||||||
|
emoji/
|
||||||
custom.d/
|
custom.d/
|
||||||
!custom.d/.gitkeep
|
!custom.d/.gitkeep
|
||||||
config.exs
|
config.exs
|
||||||
|
@ -46,4 +46,5 @@ services:
|
|||||||
- ./custom.d:/custom.d:ro
|
- ./custom.d:/custom.d:ro
|
||||||
- ./config.exs:/home/pleroma/pleroma/config/prod.secret.exs:ro
|
- ./config.exs:/home/pleroma/pleroma/config/prod.secret.exs:ro
|
||||||
- ./config.exs:/home/pleroma/pleroma/config/dev.secret.exs:ro
|
- ./config.exs:/home/pleroma/pleroma/config/dev.secret.exs:ro
|
||||||
|
- ./emoji:/home/pleroma/pleroma/instance/static/emoji
|
||||||
- $DOCKER_DATADIR/uploads:/uploads
|
- $DOCKER_DATADIR/uploads:/uploads
|
||||||
|
@ -196,6 +196,15 @@ action__restart() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
action__start() {
|
action__start() {
|
||||||
|
if [[ ! -d ./data/uploads ]] || [[ ! -d ./emoji ]]; then
|
||||||
|
if [[ "$(id -u)" != "$DOCKER_UID" ]]; then
|
||||||
|
echo "Please create the folders ./data/uploads and ./emoji, and chown them to $DOCKER_UID"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p ./data/uploads ./emoji
|
||||||
|
fi
|
||||||
|
|
||||||
docker_compose up --remove-orphans -d
|
docker_compose up --remove-orphans -d
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user