-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose1.yml
59 lines (53 loc) · 1.29 KB
/
docker-compose1.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
services:
agent:
build: ./aiagent
depends_on:
- nats
environment:
POSTGRES_DB: refunddb
POSTGRES_USER: user
POSTGRES_PASSWORD: password
OPENAI_API_KEY: ${OPENAI_API_KEY}
refund_api:
build: ./refund_api
ports:
- "8080:8080"
networks:
- backend
# depends_on:
# - ai_agent
environment:
DATABASE_URL: "postgres://user:password@postgres:5432/refunddb?sslmode=disable"
telegram_bot:
build: ./telegram_bot
depends_on:
- nats
environment:
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN}
OPENAI_API_KEY: ${OPENAI_API_KEY}
NATS_SERVER: ${NATS_SERVER}
nats:
image: nats:latest
container_name: nats-server
ports:
- "4222:4222" # Client connections
- "6222:6222" # Cluster connections
- "8222:8222" # Monitoring endpoint
postgres:
image: postgres:15
container_name: refund-db
restart: always
environment:
POSTGRES_DB: refunddb
POSTGRES_USER: user
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
# - ./init.sql:/docker-entrypoint-initdb.d/init.sql
- ./tests/create_users.sql:/docker-entrypoint-initdb.d/create_users.sql
networks:
backend:
volumes:
pgdata: