Closed huyhoang8398 closed 1 year ago
Honestly, you're probably even be better off running with --user 1000:1000
(or user: '1000:1000'
in docker-compose.yml
), if you've got a new enough kernel/Docker to support Apache running unprivileged and binding to port 80 (but barring that, what you've described should work).
Im using php-apache image. Do I still need to add user 1000 to www-data and chown all the /var/www/html to www-data
Or maybe in docker compose with this ENV:
Or just leave it as default? but i chroot to the container and see all files is own by root:root