-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (38 loc) · 1010 Bytes
/
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
version: '2'
services:
edr-db:
image: kiasaki/alpine-postgres:9.5
environment:
PGDATA: /var/lib/postgresql/data
volumes:
- edr-db:/var/lib/postgresql/data
edr-uploader:
build: .
volumes:
- ./data:/data/
environment:
PG_CONNECTION_STRING: postgres://postgres@edr-db/postgres
depends_on:
- edr-db
edr-uploader-elastic:
build: .
depends_on:
- edr-db
environment:
PG_CONNECTION_STRING: postgres://postgres@edr-db/postgres
ELASTIC_HOST: edr-elastic:9200
command: sh -c '/wait-for-it.sh -t 100 edr-elastic:9200 && node /src/pgToElastic.js'
edr-migrations:
build: ../edr-migrations
command: sh -c '/wait-for-it.sh -t 100 edr-db:5432 && npm install && knex migrate:latest'
depends_on:
- edr-db
environment:
PG_CONNECTION_STRING: postgres://postgres@edr-db/postgres
edr-elastic:
image: 'portefaix/elasticsearch:2.2.0'
ports:
- 9200:9200
- 9300:9300
volumes:
edr-db: