From 309d51ba942733afb02e9c975a0324d370b23775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=8C=E6=97=85=E9=80=94?= Date: Mon, 31 May 2021 05:19:13 +0800 Subject: [PATCH] fix Dockerfile volume setting and add volume storage (#85) * fix: volume settings from readme.md sync * chore: add volume storage --- Dockerfile | 2 +- README.md | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0b94ad0..6f13415 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,5 +64,5 @@ RUN apk add --no-progress --no-cache \ COPY rootfs / RUN chmod +x /usr/local/bin/* /etc/s6.d/*/run /etc/s6.d/.s6-svscan/* -VOLUME /flarum/app/extensions /etc/nginx/conf.d +VOLUME /etc/nginx/conf.d /flarum/app/extensions /flarum/app/public/assets /flarum/app/storage CMD ["/usr/local/bin/startup"] diff --git a/README.md b/README.md index ff5414a..9737069 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,9 @@ ### Volume -- **/flarum/app/public/assets** : Flarum assets directory - **/flarum/app/extensions** : Flarum extension directory +- **/flarum/app/public/assets** : Flarum assets directory +- **/flarum/app/storage** : Flarum storage directory(e.g. Flarum log) - **/etc/nginx/flarum** : Nginx location directory ### Environment variables @@ -94,6 +95,7 @@ services: volumes: - /mnt/docker/flarum/assets:/flarum/app/public/assets - /mnt/docker/flarum/extensions:/flarum/app/extensions + - /mnt/docker/flarum/storage:/flarum/app/storage - /mnt/docker/flarum/nginx:/etc/nginx/flarum ports: - 80:8888 @@ -167,6 +169,7 @@ services: volumes: - /mnt/docker/flarum/assets:/flarum/app/public/assets - /mnt/docker/flarum/extensions:/flarum/app/extensions + - /mnt/docker/flarum/storage:/flarum/app/storage - /mnt/docker/flarum/nginx:/etc/nginx/flarum ```