-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (58 loc) · 1.31 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
services:
freshmanragbot:
image: freshmanragbot
restart: always
build:
context: .
dockerfile: ./Dockerfile
depends_on:
- db
- elasticsearch
networks:
- bot-network
volumes:
- ${PWD}/.models/:/app/.models
- ${PWD}/configs/:/app/configs
env_file:
- .env
db:
image: pgvector/pgvector:pg16
restart: always
env_file:
- .env
networks:
- bot-network
volumes:
- ${PWD}/data/db-data/:/var/lib/postgresql/data/
pgadmin:
image: dpage/pgadmin4
restart: always
ports:
- 127.0.0.1:15433:80
env_file:
- .env
depends_on:
- db
networks:
- bot-network
volumes:
- ${PWD}/data/pgadmin-data/:/var/lib/pgadmin/
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.1
restart: always
networks:
- bot-network
volumes:
- ${PWD}/data/es_data:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- xpack.security.http.ssl.enabled=false
- cluster.routing.allocation.disk.threshold_enabled=false
deploy:
resources:
limits:
memory: 1GB
networks:
bot-network:
driver: bridge