-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1.2 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
version: '3.1'
services:
db:
image: postgres:10-alpine3.16
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}
volumes:
- './data/db:/var/lib/postgresql/data'
- './data/temp:/temp:ro'
ports:
- "127.0.0.1:5433:5432"
app:
image: jar3b/pyphias:latest
restart: unless-stopped
environment:
PG_HOST: db
PG_PORT: 5432
PG_USER: ${DB_USER}
PG_PASSWORD: ${DB_PASS}
PG_NAME: ${DB_NAME}
SPHINX_LISTEN: ${SHPINX_LISTEN}
volumes:
- './data/sphinx_conf:/etc/sphinxsearch'
- './data/source:/source'
- './data/temp:/temp'
command: ["python", "run.py", "8080"]
ports:
- "8080:8080"
sphinx:
image: jar3b/sphinxsearch:2.3.2
restart: unless-stopped
volumes:
- './data/sphinx_conf:/etc/sphinxsearch'
- './data/sphinx_idx:${SPHINX_VAR}/data'
- './data/temp:/temp'
command: ['searchd', '--nodetach', '-c', '/etc/sphinxsearch/sphinx.conf']
ports:
- "127.0.0.1:${SPHINX_PORT}:${SPHINX_PORT}"
deploy:
resources:
limits:
cpus: '2'
reservations:
cpus: '0.5'