Skip to content

Commit

Permalink
Merge pull request #28 from AIDotNet/feature/embedding_format
Browse files Browse the repository at this point in the history
Add docker-compose-rabbitmq.yml for RabbitMQ integration
  • Loading branch information
239573049 authored Oct 21, 2024
2 parents c0e5141 + cfac221 commit 0dc87cc
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
1 change: 1 addition & 0 deletions Thor.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "solution items", "solution
Directory.Build.props = Directory.Build.props
docker-compose.yml = docker-compose.yml
README.md = README.md
docker-compose-rabbitmq.yml = docker-compose-rabbitmq.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Thor.OpenAI", "src\extensions\Thor.OpenAI\Thor.OpenAI.csproj", "{F0FB17C9-8355-44C6-8340-066BE93694D8}"
Expand Down
36 changes: 36 additions & 0 deletions docker-compose-rabbitmq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: '3.8'

services:
ai-dotnet-api-service:
image: registry.token-ai.cn/thor:latest
ports:
- 18080:8080
build:
context: .
dockerfile: src/Thor.Service/Dockerfile
container_name: thor
volumes:
- ./data:/data
environment:
- TZ=Asia/Shanghai
- DBType=sqlite # sqlite | [postgresql,pgsql] | [sqlserver,mssql] | mysql
- ConnectionString=data source=/data/token.db
- LoggerConnectionString=data source=/data/logger.db
- CACHE_TYPE=Redis
- CACHE_CONNECTION_STRING=ai-redis
- RabbitMQ:ConnectionString=amqp://admin:admin@ai-rabbitmq:5672

ai-redis:
image: redis
container_name: ai-redis
volumes:
- ./data/redis:/data
command: redis-server --appendonly yes


ai-rabbitmq:
image: rabbitmq:3-management
container_name: ai-rabbitmq
environment:
RABBITMQ_DEFAULT_USER: admin
RABBITMQ_DEFAULT_PASS: admin
4 changes: 2 additions & 2 deletions src/Thor.Service/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"http_ports":"5045",
"Logging": {
"LogLevel": {
"Default": "Information",
Expand Down Expand Up @@ -78,5 +77,6 @@
"Properties": {
"Application": "AI Gateway"
}
}
},
"OTEL_EXPORTER_OTLP_ENDPOINT ": "http://20.205.21.95:4317/"
}

0 comments on commit 0dc87cc

Please sign in to comment.