-
Notifications
You must be signed in to change notification settings - Fork 3
File Permissions
-
If
MODE=DEVELOPMENTis set in thedocker-compose.yml, then the web-service inside of the Docker container will run asroot. Therefore, no changes to the host machine's archive, images, and cache directories are needed. Simply create the archive, images, and cache directories using for examplemkdir archive. -
If
MODE=DEVELOPMENTis not set in thedocker-compose.yml, then the web-service inside of the Docker container will run aswww-data. Therefore, you will need to change the owner of the host machine's archive, images, and cache directories towww-data. For example, the commandsudo chown -R www-data:www-data $DIR/archivewill recursively change the ownership of the archive, but make sure to change $DIR to be where the archive lives on the machine, as defined as the source in thedocker-compose.yml. Ifwww-datadoes not exist on the host as a user, first install nginx usingsudo apt-get install nginx. -
The
MODE=DEVELOPMENTkey allows the web-service to restart whenever code is edited, making it useful for development purposes. It is safer to keepMODE=DEVELOPMENTunset for production purposes, but either way performs equally well.
Please support me if you find this open-source software useful!
Please cite ImageBreed if you find this system useful.