-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (56 loc) · 1.41 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
53
54
55
56
57
58
59
60
version: '3.7'
# starts 4 docker containers running minio server instances. Each
# minio server's web interface will be accessible on the host at port
# 9001 through 9004.
services:
scanner:
hostname: scanner
build:
context: ./cmd/s3yarascanner
args:
RULESDIR: /go/rules
BINARYDIR: /go/bins
SQLITEDB: /go/db/results.db
FEEDSERVERTEMPLATEFILE: /go/feed.tmpl
#volumes:
# - type: bind
# source: $PWD
# target: /vol
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:31425/health"]
interval: 30s
timeout: 20s
retries: 3
environment:
BINARYSOURCEBUCKET: bucket
ENDPOINTURL: http://minio:9000
SQLITEDB: ./db/results.db
RULESDIR: ./rules
BINARYDIR: ./bins
FEEDSERVERTEMPLATEFIE: ./feed.tmpl
AWS_ACCESS_KEY: minio
AWS_SECRET_KEY: minio123
S3FORCEPATHSTYLE: 1
DISABLESSL: 1
AWS_REGION: us-east-1
LOGLEVEL: debug
minio1:
hostname: minio
image: minio/minio:latest
volumes:
- data1-1:/data1
- data1-2:/data2
ports:
- "9000:9000"
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server /data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
volumes:
data1-1:
data1-2: