-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathdocker-compose-rabbitmq.yml
65 lines (59 loc) · 1.76 KB
/
docker-compose-rabbitmq.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3.8'
services:
thor:
image: aidotnet/thor:latest
ports:
- 18080:8080
build:
context: .
dockerfile: src/Thor.Service/Dockerfile
container_name: thor
depends_on:
- ai-rabbitmq
- ai-redis
- postgres
volumes:
- ./data:/data
environment:
- TZ=Asia/Shanghai
- DBType=postgresql # sqlite | [postgresql,pgsql] | [sqlserver,mssql] | mysql
- ConnectionStrings:DefaultConnection=Host=ai-postgres;Port=5432;Database=aidotnet;Username=aidotnet;Password=aidotnet
- ConnectionStrings:LoggerConnection=Host=ai-postgres;Port=5432;Database=aidotnet-log;Username=aidotnet;Password=aidotnet
- CACHE_TYPE=Redis
- CACHE_CONNECTION_STRING=ai-redis
- RabbitMQ:ConnectionString=amqp://admin:admin@ai-rabbitmq:5672
- OTEL_SERVICE_NAME=Thor
- OTEL_EXPORTER_OTLP_PROTOCOL=grpc
- OTEL_EXPORTER_OTLP_ENDPOINT=http://aspire-dashboard:18889
- RunMigrationsAtStartup=true
postgres:
image: postgres:17
container_name: ai-postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: aidotnet
POSTGRES_PASSWORD: aidotnet
POSTGRES_DB: aidotnet
volumes:
- ./data/postgres:/var/lib/postgresql/data
ai-redis:
image: redis
container_name: ai-redis
volumes:
- ./data/redis:/data
command: redis-server --appendonly yes
aspire-dashboard:
image: mcr.microsoft.com/dotnet/aspire-dashboard:8.2
container_name: aspire-dashboard
ports:
- "18888:18888"
environment:
- TZ=Asia/Shanghai
- Dashboard:ApplicationName=Aspire
ai-rabbitmq:
image: rabbitmq:3-management
container_name: ai-rabbitmq
environment:
RABBITMQ_DEFAULT_USER: admin
RABBITMQ_DEFAULT_PASS: admin