OptimusCrime / youkok2

Den beste kokeboka på nettet
https://youkok2.com
MIT License
4 stars 0 forks source link

God damnit #300

Closed OptimusCrime closed 5 years ago

OptimusCrime commented 5 years ago
RUN chown -R www-data:www-data /var/www/html/
RUN usermod -u 1000 www-data \
 && groupmod -g 1000 www-data \
 && usermod -a -G www-data root \
 && usermod -a -G root www-data
OptimusCrime commented 5 years ago

Permissions fix:

Mount everything under /volume_data, in Dockerfile:

RUN mkdir /volume_data
RUN chown postgres:postgres /volume_data

This will make the preserve the permissions for some reason. The cronjobs will need to check if the current user is root and change the ownership accordingly. That is the only way I can see this work.

OptimusCrime commented 5 years ago

Is it possible to get the ports in docker-compose from the env file?