bolt.diy: 🐞 Docker compose up failing
Describe the bug
Environment: Windows 11 Docker OS: Linux
When attempting to build and bring up a local docker container, failures occur. See steps below
Link to the Bolt URL that caused the error
n/a
Steps to reproduce
I execute the following commands:
docker compose build
docker compose up
Expected behavior
The docker container should be running and I should be access the web application
Screen Recording / Screenshot
Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]
Additional context
I have all firewalls disabled…as far as I know
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17
Ok I found the issue for the docker compose. However it doesn’t solve the Ollama problem.
.env.local is expected into /app. So I have added a volume binding like so:
Same issue with me.
The env file is properly named :
.env.local. I am using docker compose without any change except uncommenting openAI api key line.And please note that I am using WSL2.
Container is launching but:
There are several trackers reporting similar issues. But I couldn’t make it work at all with current main branch.
[EDIT] Same error directly on Windows (not using WSL2).
Here are the logs:
Your issue and I am almost 100% positive is because you aren’t naming your env file properly. You probably have something like .env but it is looking for .env.local.
I encountered the EXACT same error as you. But one thing you notice when you run “preview” is it will literally tell you that you are missing .env.local.
If you simply change your
.envfile name to.env.localit will run perfect with
pnmp run startBOOM Goes the Dynamite!!!