-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-vespa.yml
70 lines (70 loc) · 1.72 KB
/
docker-compose-vespa.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.9'
services:
vespa:
image: vespaengine/vespa:7.451.27
container_name: myblog-search-vespa
hostname: myblog-search-vespa
ports:
- 8080:8080
- 19112:19112
- 19071:19071
volumes:
- type: volume
source: vespa-var
target: /opt/vespa/var
- type: volume
source: vespa-logs
target: /opt/vespa/logs
- type: bind
source: ./vespa/application
target: /application
read_only: true
deploy:
resources:
limits:
memory: 6G
middleware:
image: sean1975/myblog-search:middleware
container_name: myblog-search-middleware
hostname: myblog-search-middleware
ports:
- 8000:80
environment:
- BACKEND_URL=http://host.docker.internal:8080
- BACKEND_TYPE=vespa
nginx:
image: nginx:1.21.0
container_name: myblog-search-nginx
hostname: myblog-search-nginx
ports:
- 80:80
environment:
- MIDDLEWARE_URL=http://host.docker.internal:8000
volumes:
- type: bind
source: ./nginx/etc/nginx.conf
target: /etc/nginx/nginx.conf
read_only: true
- type: bind
source: ./nginx/etc/templates/default.conf.template
target: /etc/nginx/templates/default.conf.template
read_only: true
- type: bind
source: ./nginx/html
target: /usr/share/nginx/html
read_only: true
- type: bind
source: ./nginx/css
target: /usr/share/nginx/css
read_only: true
- type: bind
source: ./nginx/js
target: /usr/share/nginx/js
read_only: true
volumes:
vespa-var:
driver: local
vespa-logs:
driver: local
crawler-backup:
driver: local