-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (46 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
47 lines (46 loc) · 1.11 KB
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
version: '3.3'
services:
lookout:
image: "srcd/lookout:latest"
network_mode: "host"
depends_on:
- postgres
- dummy
environment:
GITHUB_USER: ${GITHUB_USER}
GITHUB_TOKEN: ${GITHUB_TOKEN}
ports:
- "10301:10301"
entrypoint: ["/bin/sh"]
# sleep because container with db is up but the db itself doesn't accept connections yet
command: ["-c", "sleep 5 && lookout migrate && lookout serve ${REPO}"]
volumes:
- ./config.yml:/config.yml
dummy:
image: "srcd/lookout-dummy-analyzer:latest"
network_mode: "host"
ports:
- "10302:10302"
bblfsh:
image: "bblfsh/bblfshd:v2.5.0"
privileged: true
ports:
- "9432:9432"
volumes:
- type: volume
source: drivers
target: /var/lib/bblfshd
entrypoint: ["/bin/sh"]
command:
- "-c"
- "bblfshd & sleep 1 && bblfshctl driver install --recommended && tail -f /dev/null"
postgres:
image: "postgres:alpine"
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: lookout
volumes:
drivers: