forked from anchore/anchore-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
138 lines (135 loc) · 3.66 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
---
version: '2.1'
volumes:
anchore-db-volume:
# Set this to 'true' to use an external volume. In which case, it must be created manually with "docker volume create anchore-db-volume"
external: false
anchore-scratch: {}
services:
# The primary API endpoint service
engine-api:
image: anchore/anchore-engine:v0.5.0
depends_on:
- anchore-db
- engine-catalog
#volumes:
#- ./config-engine.yaml:/config/config.yaml:z
ports:
- "8228:8228"
logging:
driver: "json-file"
options:
max-size: 100m
environment:
- ANCHORE_ENDPOINT_HOSTNAME=engine-api
- ANCHORE_DB_HOST=anchore-db
- ANCHORE_DB_PASSWORD=mysecretpassword
- ANCHORE_LOG_LEVEL=INFO
command: ["anchore-manager", "service", "start", "apiext"]
# Catalog is the primary persistence and state manager of the system
engine-catalog:
image: anchore/anchore-engine:v0.5.0
depends_on:
- anchore-db
#volumes:
#- ./config-engine.yaml:/config/config.yaml:z
logging:
driver: "json-file"
options:
max-size: 100m
expose:
- 8228
environment:
- ANCHORE_ENDPOINT_HOSTNAME=engine-catalog
- ANCHORE_DB_HOST=anchore-db
- ANCHORE_DB_PASSWORD=mysecretpassword
- ANCHORE_LOG_LEVEL=INFO
command: ["anchore-manager", "service", "start", "catalog"]
engine-simpleq:
image: anchore/anchore-engine:v0.5.0
depends_on:
- anchore-db
- engine-catalog
#volumes:
#- ./config-engine.yaml:/config/config.yaml:z
expose:
- 8228
logging:
driver: "json-file"
options:
max-size: 100m
environment:
- ANCHORE_ENDPOINT_HOSTNAME=engine-simpleq
- ANCHORE_DB_HOST=anchore-db
- ANCHORE_DB_PASSWORD=mysecretpassword
- ANCHORE_LOG_LEVEL=INFO
command: ["anchore-manager", "service", "start", "simplequeue"]
engine-policy-engine:
image: anchore/anchore-engine:v0.5.0
depends_on:
- anchore-db
- engine-catalog
#volumes:
#- ./config-engine.yaml:/config/config.yaml:z
expose:
- 8228
logging:
driver: "json-file"
options:
max-size: 100m
environment:
- ANCHORE_ENDPOINT_HOSTNAME=engine-policy-engine
- ANCHORE_DB_HOST=anchore-db
- ANCHORE_DB_PASSWORD=mysecretpassword
- ANCHORE_LOG_LEVEL=INFO
command: ["anchore-manager", "service", "start", "policy_engine"]
engine-analyzer:
image: anchore/anchore-engine:v0.5.0
depends_on:
- anchore-db
- engine-catalog
#volumes:
#- ./config-engine.yaml:/config/config.yaml:z
expose:
- 8228
logging:
driver: "json-file"
options:
max-size: 100m
environment:
- ANCHORE_ENDPOINT_HOSTNAME=engine-analyzer
- ANCHORE_DB_HOST=anchore-db
- ANCHORE_DB_PASSWORD=mysecretpassword
- ANCHORE_LOG_LEVEL=INFO
volumes:
- anchore-scratch:/analysis_scratch
command: ["anchore-manager", "service", "start", "analyzer"]
anchore-db:
image: "postgres:9"
volumes:
- anchore-db-volume:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=mysecretpassword
expose:
- 5432
logging:
driver: "json-file"
options:
max-size: 100m
# Kubernetes handler webhook. Uncomment to use, not typically needed for docker-compose installs
# kubehook:
# image: anchore/anchore-engine:v0.5.0
# depends_on:
# - anchore-db
# - engine-catalog
# ports:
# - "8338:8228"
# logging:
# driver: "json-file"
# options:
# max-size: 100m
# environment:
# - ANCHORE_DB_HOST=anchore-db
# - ANCHORE_DB_PASSWORD=mysecretpassword
# - ANCHORE_ENDPOINT_HOSTNAME=kubehook
# command: ["anchore-manager", "service", "start", "kubernetes_webhook"]