fix Dockerfile volume setting and add volume storage (#85)
* fix: volume settings from readme.md sync * chore: add volume storagepull/92/head
parent
dc2cba4361
commit
309d51ba94
|
@ -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"]
|
||||||
|
|
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue