Closed D4VID0x2 closed 25 minutes ago
Option 1: look in the .env in your conf/ what is the value and that is matches as expected.
Option 2: run docker exec lychee hp artisan key:generate
Also remove that line from your lychee.env as this is messing up with your config.
Option 1: look in the .env in your conf/ what is the value and that is matches as expected. Option 2: run
docker exec lychee hp artisan key:generate
Also remove that line from your lychee.env as this is messing up with your config.
Thank you for the quick reply.
What line should I remove?
I took the env file from the setup tutorial on the website.
Yes but that is not the way docker is working.
You are setting env_file: lychee.env
which means that the environment variables of .env
are loaded into docker. But that does not mean that they are used in Lychee.
In our case we are injecting those into the conf/.env
. Now if you restart your server and that installation has been run, it will assume that conf/.env
is properly populated however it will still be updating with the values provided by docker.
In your case you should remove the APP_KEY=
from your lychee.env
This is also why we provide a docker compose file directly: https://github.com/LycheeOrg/Lychee-Docker/blob/master/docker-compose.yml with only the minimum values needed to run lychee.
Okay, thank you.
I set up a lychee instance and I can finish the installation successfully and it works just fine but when I restart the server it stops working and just returns
It is behind a reverse proxy which I have specified in the env file.
Docker compose:
lychee.env: