-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
42 lines (39 loc) · 1006 Bytes
/
docker-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
39
40
41
42
services:
app:
build:
context: .
dockerfile: compose/svc.Dockerfile
target: nxsearch-svc
image: nxsearch-svc
ulimits:
nofile:
soft: 65536
hard: 1048576
ports:
- "127.0.0.1:8000:8000"
volumes:
- ./data:/nxsearch/data
# DEV-only:
#- ./svc-src/nxsearch_svc.lua:/usr/local/openresty/lualib/nxsearch_svc.lua
#- ./svc-src/nxsearch_storage.lua:/usr/local/openresty/lualib/nxsearch_storage.lua
# - ./compose/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf
# - ./compose/openapi.json:/app/public_html/openapi.json
lib:
build:
context: .
dockerfile: compose/svc.Dockerfile
target: nxsearch-lib
image: nxsearch-lib
cap_add:
- SYS_PTRACE
volumes:
- ./data:/nxsearch/data
- ./src:/src
stdlib:
# standalone library
build:
context: .
dockerfile: compose/lib.Dockerfile
image: nxsearch-stdlib
volumes:
- ./src:/lib-src