Docker 'development' profile has not been working well or at all for folks running Ollama. This may also relate to using other providers via a Docker-based oTToDev instance. Here's the situation:
Setup
Your .env.local must specify a base URL for Ollama; http://localhost:11434 if you're running oTToDev alongside Ollama locally, http://host.docker.internal:11434 if you're running oTToDev in a container with Ollama locally. If both are in a container, they should both be on the same virtual network and you would use http://[docker vnet host for ollama]:11434. I feel that scenario is out of scope for now in terms of us providing technical support to run Ollama.
Docker development (with Ollama running on local machine)
Run development environment locally: pnpm install && pnpm run dev
FIX
.env.local is present in .dockerignore, ensuring it will not be available during build process or when running via Docker Compose. This PR removes that.
The env_file for Docker development profile is not set, this PR sets it to .env.local. We probably want to use .env for production instead of its current state of .env.local as well.
I would suggest that instead of running development with .env.local, we may want to have three tiers
.env.local: Fully local run via pnpm run dev, this is actually local
.env.dev: We would use this for Docker while using the development profile
.env: The real .env for actual production runs.
I'd like to see if we can get some docker folks to test their environments with these changes, I know there are several solutions out there as existing Pull Requests but I feel like this one involves the least amount of future maintenance.
Issue
Docker 'development' profile has not been working well or at all for folks running Ollama. This may also relate to using other providers via a Docker-based oTToDev instance. Here's the situation:
Setup
Docker development (with Ollama running on local machine)
pnpm run dockerbuild && docker compose --profile development up
pnpm run dockerrun
may want to be adjusted or removed; Not focused on that just for this PR however.Local development (oTToDev and Ollama running on local machine)
pnpm install && pnpm run dev
FIX
env_file
for Docker development profile is not set, this PR sets it to .env.local. We probably want to use .env for production instead of its current state of .env.local as well.pnpm run dev
, this is actually localdevelopment
profileI'd like to see if we can get some docker folks to test their environments with these changes, I know there are several solutions out there as existing Pull Requests but I feel like this one involves the least amount of future maintenance.