-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (62 loc) · 1.56 KB
/
docker-compose.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
66
67
68
69
70
version: '3.8'
services:
postgresql:
image: postgres:latest
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_PASSWORD: 51kln00bfd54FTY # Change to your actual password
POSTGRES_DB: tgclient
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
restart: on-failure
weaviate:
image: cr.weaviate.io/semitechnologies/weaviate:1.24.6
command:
- --host
- 0.0.0.0
- --port
- '8080'
- --scheme
- http
ports:
- "8080:8080"
# - "50051:50051"
volumes:
- weaviate_data:/var/lib/weaviate
restart: on-failure
environment:
IMAGE_INFERENCE_API: 'http://i2v-neural:8080'
QUERY_DEFAULTS_LIMIT: '25'
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
DEFAULT_VECTORIZER_MODULE: 'img2vec-neural'
ENABLE_MODULES: 'img2vec-neural'
CLUSTER_HOSTNAME: 'node1'
i2v-neural:
image: cr.weaviate.io/semitechnologies/img2vec-pytorch:resnet50
environment:
ENABLE_CUDA: '0'
tgbot:
build: .
environment:
NODE_ENV: production
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
restart: on-failure
ports:
- '3086:3086' # Adjust if your bot needs to expose any ports
depends_on:
- postgresql
- weaviate
- i2v-neural
volumes:
weaviate_data: {}
postgres_data: {}