Skip to content

Commit

Permalink
Revert "change docs to use .env instead of local.env (#100)"
Browse files Browse the repository at this point in the history
This reverts commit eca7304.
  • Loading branch information
nick committed Oct 8, 2024
1 parent eca7304 commit b607278
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ deps/chroma-data
config/dev
!config/dev/config.sample.json
local.env
.env
.DS_Store
spec/examples.txt
config/local/*
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ The Getting Started section will walk you through setting up Archyve for use wit
To run Archyve, use `docker compose`.

1. Clone this repo
2. `cp dotenv_template .env`
3. Run `openssl rand -hex 64` and put the value in the `SECRET_KEY_BASE` variable in your `.env` file
2. `cp dotenv_template local.env`
3. Run `openssl rand -hex 64` and put the value in the `SECRET_KEY_BASE` variable in your `local.env` file
4. Run the container

```bash
Expand All @@ -75,7 +75,7 @@ docker compose up --build
>
> Work around this with `mv deps ../archyve-deps`. You'll need to `mv ../archyve-deps deps` when you want to run the app on your host again.
5. Browse to http://127.0.0.1:3300 and log in with `admin@archyve.io` / `password` (you can change these values by setting `USERNAME` and `PASSWORD` in your `.env` file and restarting the container)
5. Browse to http://127.0.0.1:3300 and log in with `admin@archyve.io` / `password` (you can change these values by setting `USERNAME` and `PASSWORD` in your `local.env` file and restarting the container)

> **WARNING**: The container will write a file with local encryption keys into `config/local`. **If you lose this file**, the application will not be able to decrypt sensitive data within the database (e.g. passwords or API keys), and the database will need to be reset, **losing all data**.
>
Expand Down Expand Up @@ -194,7 +194,7 @@ If you are running the app on your host, you can set the `DEFAULT_API_KEY` and `
- `DEFAULT_API_KEY` must be a 48-byte value encoded in base64. Generate a key with `openssl rand -base64 48`.
- `DEFAULT_CLIENT_ID` can be any string, but it should be unique to your app. A UUID is recommended.

> If you are running the app via `docker compose`, set the above two environment variables in your `.env` file and restart the containers.
> If you are running the app via `docker compose`, set the above two environment variables in your `local.env` file and restart the containers.
> If you are running the app on your host, set the two above environment variables in `config/dev/config.json` and run `rails db:seed`.
Expand Down
8 changes: 4 additions & 4 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ services:
archyve:
image: archyve:local
build: .
env_file: .env
env_file: ./local.env
restart: unless-stopped
volumes: &archyve-volumes
- archyve_files:/rails/storage
Expand All @@ -50,7 +50,7 @@ services:
archyve-ollamaproxy:
image: archyve:local
build: .
env_file: .env
env_file: ./local.env
restart: unless-stopped
volumes: *archyve-volumes
# this needs to be edited to give podman access to host
Expand All @@ -75,7 +75,7 @@ services:
]
archyve-worker:
image: archyve:local
env_file: .env
env_file: ./local.env
restart: unless-stopped
volumes: *archyve-volumes
# this needs to be edited to give podman access to host
Expand All @@ -90,7 +90,7 @@ services:
RUN_SIDEKIQ: true
archyve-worker-llm:
image: archyve:local
env_file: .env
env_file: ./local.env
restart: unless-stopped
volumes: *archyve-volumes
# this needs to be edited to give podman access to host
Expand Down
2 changes: 1 addition & 1 deletion docs/deploying.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ In general, you shouldn't need to set any of these except in development.

By default, Archyve will use 5 threads to run non-LLM jobs (jobs that won't hit an LLM server API) at a time, and 5 LLM jobs at a time. You may need to **change the LLM job concurrency** if you get throttled by the LLM server (e.g. OpenAI).

To change this value, change the value of `LLM_JOBS_CONCURRENCY` in your `.env` file.
To change this value, change the value of `LLM_JOBS_CONCURRENCY` in your `local.env` file.

0 comments on commit b607278

Please sign in to comment.