-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdocker-compose.yml
88 lines (81 loc) · 1.98 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3.9"
services:
mysql:
environment:
- MYSQL_ROOT_PASSWORD=A74yJikLWdwp
- TZ=Asia/Shanghai
image: "${REGISTRY:-docker.io}/mysql:8.0.32"
ports:
- "3306:3306"
volumes:
- ./scripts/init_schema.sql:/docker-entrypoint-initdb.d/init_schema.sql
- "${DATA_DIR:-./demos/data}/mysql-data:/var/lib/mysql"
networks:
- doc-solver
weaviate:
command:
- --host
- 0.0.0.0
- --port
- '8080'
- --scheme
- http
image: "${REGISTRY:-cr.weaviate.io}/semitechnologies/weaviate:1.24.5"
ports:
- 8080:8080
- 50051:50051
volumes:
- "${DATA_DIR:-./demos/data}/weaviate-data:/var/lib/weaviate"
restart: on-failure:0
environment:
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
DEFAULT_VECTORIZER_MODULE: 'none'
ENABLE_MODULES: ''
CLUSTER_HOSTNAME: 'node1'
networks:
- doc-solver
redis:
image: "${REGISTRY:-docker.io}/redis:6-alpine"
restart: always
ports:
- "6379:6379"
volumes:
- "${DATA_DIR:-./demos/data}/redis-data:/data"
command: redis-server --requirepass docsolver123456
networks:
- doc-solver
web:
image: "${REGISTRY:-docker.io}/hermesai/doc-solver-web:v0.1.29"
entrypoint: ["/bin/sh", "-c","./scripts/bootstrap.sh"]
# entrypoint: ["sleep", "infinity"]
cap_add:
- SYS_PTRACE
security_opt:
- "seccomp:unconfined"
ports:
- "3000:3000"
environment:
- TZ=Asia/Shanghai
volumes:
- .env:/app/.env
depends_on:
- mysql
networks:
- doc-solver
worker:
image: "${REGISTRY:-docker.io}/hermesai/doc-solver-worker:v0.1.29"
entrypoint: ["/bin/sh", "-c","./scripts/bootstrap.worker.sh"]
environment:
- TZ=Asia/Shanghai
volumes:
- .env:/app/.env
depends_on:
- mysql
- redis
- weaviate
networks:
- doc-solver
networks:
doc-solver: