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 / COPY rootfs /
RUN chmod +x /usr/local/bin/* /etc/s6.d/*/run /etc/s6.d/.s6-svscan/* 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"] CMD ["/usr/local/bin/startup"]

View File

@ -33,8 +33,9 @@
### Volume ### Volume
- **/flarum/app/public/assets** : Flarum assets directory
- **/flarum/app/extensions** : Flarum extension 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 - **/etc/nginx/flarum** : Nginx location directory
### Environment variables ### Environment variables
@ -94,6 +95,7 @@ services:
volumes: volumes:
- /mnt/docker/flarum/assets:/flarum/app/public/assets - /mnt/docker/flarum/assets:/flarum/app/public/assets
- /mnt/docker/flarum/extensions:/flarum/app/extensions - /mnt/docker/flarum/extensions:/flarum/app/extensions
- /mnt/docker/flarum/storage:/flarum/app/storage
- /mnt/docker/flarum/nginx:/etc/nginx/flarum - /mnt/docker/flarum/nginx:/etc/nginx/flarum
ports: ports:
- 80:8888 - 80:8888
@ -167,6 +169,7 @@ services:
volumes: volumes:
- /mnt/docker/flarum/assets:/flarum/app/public/assets - /mnt/docker/flarum/assets:/flarum/app/public/assets
- /mnt/docker/flarum/extensions:/flarum/app/extensions - /mnt/docker/flarum/extensions:/flarum/app/extensions
- /mnt/docker/flarum/storage:/flarum/app/storage
- /mnt/docker/flarum/nginx:/etc/nginx/flarum - /mnt/docker/flarum/nginx:/etc/nginx/flarum
``` ```