Open zhibor opened 6 months ago
Hi, the reason is already in error message:
pydantic_core._pydantic_core.ValidationError: 2 validation errors for Settings
security
Field required [type=missing, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/missing
database
Field required [type=missing, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/missing
you are not providing two required environment variables, see app/core/config.py
something like that should work
docker run -d -p 8000:8000 -e SECURITY__JWT_SECRET_KEY='something' -e DATABASE__PASSWORD='some-passwd' ..
or you can use .env.example
or run with docker compose.
great template!
docker run -d -p 8000:8000 ..
yields the error message below