gregorip02
Laravel app: permission denied to write on mounted volume
I am using
serversideup/php:8.3-unit
as docker image in my application. The home directory of my application is /var/www/html/
and I am mounting the volume to /var/www/html/storage/app/public
which is where the files that are uploaded to my application are stored.
I already set the environment variable RAILWAY_RUN_UID=0
but I have permission issues to write to the mounted volume.
The container is running as a non-privileged user www-data
but i still have the following error:
This is the code that generates the error:
16 replies
I can't access my MySQL database using the private network.
I am using the
unit:php8.2
docker image to deploy a Laravel application. I used MYSQL_PRIVATE_URL variable to connect to the database but I get the error "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql.railway.internal failed: nodename nor servname provided, or not known"26 replies