Browse Source

Create persistent emoji mount (Fixes #8)

master
sn0w 1 year ago
parent
commit
9398a1b816
No known key found for this signature in database GPG Key ID: C45A6D698F224B39
4 changed files with 12 additions and 0 deletions
  1. +1
    -0
      .dockerignore
  2. +1
    -0
      .gitignore
  3. +1
    -0
      docker-compose.yml
  4. +9
    -0
      pleroma.sh

+ 1
- 0
.dockerignore View File

@ -1,2 +1,3 @@
data/
cache/
emoji/

+ 1
- 0
.gitignore View File

@ -1,5 +1,6 @@
data/
cache/
emoji/
custom.d/
!custom.d/.gitkeep
config.exs


+ 1
- 0
docker-compose.yml View File

@ -46,4 +46,5 @@ services:
- ./custom.d:/custom.d:ro
- ./config.exs:/home/pleroma/pleroma/config/prod.secret.exs:ro
- ./config.exs:/home/pleroma/pleroma/config/dev.secret.exs:ro
- ./emoji:/home/pleroma/pleroma/instance/static/emoji
- $DOCKER_DATADIR/uploads:/uploads

+ 9
- 0
pleroma.sh View File

@ -196,6 +196,15 @@ action__restart() {
}
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
}


Loading…
Cancel
Save