Skip to content

Commit

Permalink
Update - removed redis_url from config module and injected it directl…
Browse files Browse the repository at this point in the history
…y into docker compose files
  • Loading branch information
aybruhm committed Nov 21, 2023
1 parent 2b901b1 commit bdbada5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion agenta-backend/agenta_backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
os.environ["DOCKER_HUB_URL"] = toml_config["docker_hub_url"]
os.environ["DOCKER_HUB_REPO_OWNER"] = toml_config["docker_hub_repo_owner"]
os.environ["DOCKER_HUB_REPO_NAME"] = toml_config["docker_hub_repo_name"]
os.environ["REDIS_URL"] = os.environ.get("REDIS_URL", "redis://redis:6379/0")
os.environ["DATABASE_MODE"] = os.environ.get("DATABASE_MODE", "v2")


Expand Down
1 change: 1 addition & 0 deletions docker-compose.gh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:
image: ghcr.io/agenta-ai/agenta-backend
environment:
- MONGODB_URI=mongodb://username:password@mongo:27017
- REDIS_URL=redis://redis:6379/0
- ENVIRONMENT=development
- BARE_DOMAIN_NAME=${BARE_DOMAIN_NAME:-localhost}
- DOMAIN_NAME=${DOMAIN_NAME:-http://localhost}
Expand Down
1 change: 1 addition & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
build: ./agenta-backend
environment:
- MONGODB_URI=mongodb://username:password@mongo:27017
- REDIS_URL=redis://redis:6379/0
- ALLOW_ORIGINS=${ALLOW_ORIGINS}
- ENVIRONMENT=production
- FEATURE_FLAG=oss
Expand Down
1 change: 1 addition & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
container_name: agenta-backend-test
environment:
- MONGODB_URI=mongodb://username:password@mongo:27017/
- REDIS_URL=redis://redis:6379/0
- ENVIRONMENT=development
- DATABASE_MODE=test
- FEATURE_FLAG=oss
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
build: ./agenta-backend
environment:
- MONGODB_URI=mongodb://username:password@mongo:27017
- REDIS_URL=redis://redis:6379/0
- ENVIRONMENT=development
- DATABASE_MODE=v2
- BARE_DOMAIN_NAME=localhost
Expand Down

0 comments on commit bdbada5

Please sign in to comment.