fix Dockerfile volume setting and add volume storage (#85)

* fix: volume settings from readme.md sync

* chore: add volume storage
pull/92/head
行旅途 2021-05-31 05:19:13 +08:00 committed by GitHub
parent dc2cba4361
commit 309d51ba94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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"]

View File

@ -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
```