Docker volume path

This commit is contained in:
Frederic Guillot 2016-07-02 22:52:52 -04:00
parent 4f9e522438
commit e7a15de9e5
No known key found for this signature in database
GPG Key ID: 92D77191BA7FBC99
3 changed files with 8 additions and 8 deletions

View File

@ -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 chown -R nginx:nginx /var/www/app/data /var/www/app/plugins
VOLUME /var/www/kanboard/data
VOLUME /var/www/kanboard/plugins
VOLUME /var/www/app/data
VOLUME /var/www/app/plugins

View File

@ -64,8 +64,8 @@ Volumes
You can attach 2 volumes to your container:
- Data folder: `/var/www/kanboard/data`
- Plugins folder: `/var/www/kanboard/plugins`
- Data folder: `/var/www/app/data`
- 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/).
@ -84,8 +84,8 @@ The list of environment variables is available on [this page](env.markdown).
Config files
------------
- The container already include a custom config file located at `/var/www/kanboard/config.php`.
- You can store your own config file on the data volume: `/var/www/kanboard/data/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/app/data/config.php`.
References
----------

View File

@ -5,8 +5,8 @@ services:
ports:
- "80:80"
volumes:
- kanboard_data:/var/www/kanboard/data
- kanboard_plugins:/var/www/kanboard/plugins
- kanboard_data:/var/www/app/data
- kanboard_plugins:/var/www/app/plugins
volumes:
kanboard_data:
driver: local