forked from quay/claircore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
44 lines (41 loc) · 1.2 KB
/
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
43
44
version: "3.7"
services:
claircore-db:
image: postgres:11.5
environment:
POSTGRES_USER: "claircore"
POSTGRES_DB: "claircore"
ports:
- "5434:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U claircore -d claircore" ]
interval: 10s
timeout: 9s
retries: 3
start_period: 10s
libindexhttp:
image: quay.io/claircore/golang:1.13.3
ports:
- "8080:8080"
environment:
HTTP_LISTEN_ADDR: "0.0.0.0:8080"
CONNECTION_STRING: "host=claircore-db port=5432 user=claircore dbname=claircore sslmode=disable"
SCAN_LOCK_RETRY: 1
LAYER_SCAN_CONCURRENCY: 10
LOG_LEVEL: "debug"
volumes:
- "./:/src/claircore/"
command:
[ "bash", "-c", "cd /src/claircore/cmd/libindexhttp; go run -mod vendor ." ]
libvulnhttp:
image: quay.io/claircore/golang:1.13.3
ports:
- "8081:8081"
environment:
HTTP_LISTEN_ADDR: "0.0.0.0:8081"
CONNECTION_STRING: "host=claircore-db port=5432 user=claircore dbname=claircore sslmode=disable"
LOG_LEVEL: "debug"
volumes:
- "./:/src/claircore/"
command:
[ "bash", "-c", "cd /src/claircore/cmd/libvulnhttp; go run -mod vendor ." ]