Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,6 @@ POSTGRES_USER=placeos
POSTGRES_PASSWORD=development

# Logging variables
ENABLE_LGTM=false
ENABLE_LGTM=false
# Ollama and open-webui
ENABLE_LLAMA=false
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ Arguments:
--application APP_NAME Application to configure. [default: backoffice]
--domain DOMAIN Domain to configure. [default: localhost:8443]
--hard-reset Reset the environment to a default state.
--lgtm Enable and use Grafana LGTM stack
--llama Enable and start ollama and open-webui
-v, --verbose Write logs to STDOUT in addition to the log file.
-h, --help Display this message
```
Expand Down
33 changes: 33 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ volumes:
core-drivers:
www:
minio:
ollama:
open-webui:

# YAML Anchors

Expand Down Expand Up @@ -597,3 +599,34 @@ services:
url: http://loki:3100
EOF
/run.sh

ollama:
volumes:
- ollama:/root/.ollama
container_name: ollama
tty: true
restart: unless-stopped
image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest}
<<: [*std-network,*std-logging]
profiles:
- llama

open-webui:
image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
container_name: open-webui
<<: [*std-network,*std-logging]
volumes:
- open-webui:/app/backend/data
depends_on:
- ollama
profiles:
- llama
ports:
- ${OPEN_WEBUI_PORT-3000}:8080
environment:
- 'OLLAMA_BASE_URL=http://ollama:11434'
- 'WEBUI_SECRET_KEY='
- 'WEBUI_AUTH=False'
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
Binary file modified images/service-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions placeos
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ start_environment() (
hard_reset=false
enable_analytics=false
enable_lgtm=false
enable_llama=false
email_argument=""
password_argument=""
domain_argument=""
Expand Down Expand Up @@ -215,6 +216,9 @@ start_environment() (
--lgtm)
enable_lgtm=true
;;
--llama)
enable_llama=true
;;
-v | --verbose)
VERBOSE="true"
;;
Expand Down Expand Up @@ -305,6 +309,10 @@ start_environment() (
export LOG_FORMAT=JSON
fi

if [[ $ENABLE_LLAMA == "true" ]] || [[ $enable_llama == "true" ]]; then
PROFILES+=" --profile llama"
fi

run_or_abort \
"${base_path}/scripts/generate-secrets" \
"Generating secrets..." \
Expand Down