-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·52 lines (47 loc) · 1.01 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
version: '2'
services:
xmldb:
image: basex/basexhttp:latest
restart: unless-stopped
ports:
- 1984
- 8984
db:
image: postgres:latest
restart: unless-stopped
expose:
- 5433
- 5432
volumes:
- ./postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
es:
image: elasticsearch:5
restart: unless-stopped
expose:
- 9200
web:
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
args:
- http_proxy
- https_proxy
command: bundle exec rails s -p 80 -b '0.0.0.0'
volumes:
- ./src:/lacr-search
- /docker/lacr-search/src/public/uploads:/old-uploads
environment:
BASEX_ADMIN: ${BASEX_ADMIN}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
BASEX_READONLY: ${BASEX_READONLY}
BASEX_CREATEONLY: ${BASEX_READONLY}
ports:
- "80:80"
depends_on:
- es
- db
- xmldb