forked from quay/claircore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
57 lines (52 loc) · 1.56 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
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3.7"
# if you are using firewalld add this consistent bridge name
# to your trusted zone
# sudo firewall-cmd --zone=trusted --add-interface=claircore --permanent
# sudo firewall-cmd --reload
networks:
default:
driver_opts:
com.docker.network.bridge.name: claircore
services:
claircore-db:
image: postgres:11.5
container_name: claircore-db
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
container_name: libindexhttp
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
container_name: libvulnhttp
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 ." ]