-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
38 lines (35 loc) · 984 Bytes
/
compose.yaml
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
services:
rurema:
build:
context: .
volumes:
- "./db:/home/rurema/db"
- "./html/ja:/home/rurema/html/ja"
- "./tool:/home/rurema/tool"
command: "/bin/bash"
profiles:
- tools
rurema-search:
build:
context: .
dockerfile: Dockerfile.rurema-search
volumes:
- "./db:/home/rurema/db:ro"
- "./tool:/home/rurema/tool:ro"
- "groonga-database:/home/rurema/rurema-search/groonga-database"
- "suggest:/home/rurema/rurema-search/var/lib/suggest"
command: "bundle exec rackup --server puma --host 0.0.0.0"
ports:
- "9292:9292"
web:
image: nginx
volumes:
- "./repos/docs.ruby-lang.org/public:/usr/share/nginx/html:ro"
- "./html/ja:/usr/share/nginx/html/ja:ro"
- "./example/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro"
ports:
# Related: base_url in example/rurema-search/document.yaml
- "9000:80"
volumes:
groonga-database:
suggest: