Docker volume path
This commit is contained in:
parent
4f9e522438
commit
e7a15de9e5
|
|
@ -8,5 +8,5 @@ COPY docker/services.d/cron /etc/services.d/cron
|
||||||
RUN cd /var/www/app && composer --prefer-dist --no-dev --optimize-autoloader --quiet install
|
RUN cd /var/www/app && composer --prefer-dist --no-dev --optimize-autoloader --quiet install
|
||||||
RUN chown -R nginx:nginx /var/www/app/data /var/www/app/plugins
|
RUN chown -R nginx:nginx /var/www/app/data /var/www/app/plugins
|
||||||
|
|
||||||
VOLUME /var/www/kanboard/data
|
VOLUME /var/www/app/data
|
||||||
VOLUME /var/www/kanboard/plugins
|
VOLUME /var/www/app/plugins
|
||||||
|
|
|
||||||
|
|
@ -64,8 +64,8 @@ Volumes
|
||||||
|
|
||||||
You can attach 2 volumes to your container:
|
You can attach 2 volumes to your container:
|
||||||
|
|
||||||
- Data folder: `/var/www/kanboard/data`
|
- Data folder: `/var/www/app/data`
|
||||||
- Plugins folder: `/var/www/kanboard/plugins`
|
- Plugins folder: `/var/www/app/plugins`
|
||||||
|
|
||||||
Use the flag `-v` to mount a volume on the host machine like described in [official Docker documentation](https://docs.docker.com/engine/userguide/containers/dockervolumes/).
|
Use the flag `-v` to mount a volume on the host machine like described in [official Docker documentation](https://docs.docker.com/engine/userguide/containers/dockervolumes/).
|
||||||
|
|
||||||
|
|
@ -84,8 +84,8 @@ The list of environment variables is available on [this page](env.markdown).
|
||||||
Config files
|
Config files
|
||||||
------------
|
------------
|
||||||
|
|
||||||
- The container already include a custom config file located at `/var/www/kanboard/config.php`.
|
- The container already include a custom config file located at `/var/www/app/config.php`.
|
||||||
- You can store your own config file on the data volume: `/var/www/kanboard/data/config.php`.
|
- You can store your own config file on the data volume: `/var/www/app/data/config.php`.
|
||||||
|
|
||||||
References
|
References
|
||||||
----------
|
----------
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
volumes:
|
volumes:
|
||||||
- kanboard_data:/var/www/kanboard/data
|
- kanboard_data:/var/www/app/data
|
||||||
- kanboard_plugins:/var/www/kanboard/plugins
|
- kanboard_plugins:/var/www/app/plugins
|
||||||
volumes:
|
volumes:
|
||||||
kanboard_data:
|
kanboard_data:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue