forked from guacsec/guac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
136 lines (125 loc) · 2.87 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
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
version: "3.9"
services:
nats:
networks: [ frontend ]
image: "docker.io/library/nats:2.9.17-alpine"
command: "--config /config/nats/js.conf -m 8222"
ports:
- "4222:4222"
# monitoring port
- "8222:8222"
volumes:
- ./container_files/nats:/config/nats:z
restart: on-failure
healthcheck:
test:
[
"CMD",
"wget",
"--spider",
"http://localhost:8222/healthz"
]
interval: 10s
timeout: 10s
retries: 3
start_period: 5s
guac-collectsub:
networks: [ frontend ]
image: $GUAC_IMAGE
command: "/opt/guac/guaccsub"
working_dir: /guac
restart: on-failure
ports:
- "2782:2782"
depends_on:
nats:
condition: service_healthy
volumes:
- ./container_files/guac:/guac:z
healthcheck:
test: [ "CMD", "wget", "--spider", "http://localhost:2782" ]
interval: 10s
timeout: 10s
retries: 3
start_period: 5s
guac-ingestor:
networks: [ frontend ]
image: $GUAC_IMAGE
command: "/opt/guac/guacingest"
working_dir: /guac
restart: on-failure
depends_on:
guac-collectsub:
condition: service_healthy
volumes:
- ./container_files/guac:/guac:z
- blobstore:/tmp/blobstore
oci-collector:
networks: [ frontend ]
image: $GUAC_IMAGE
command: "/opt/guac/guaccollect image"
working_dir: /guac
restart: on-failure
depends_on:
guac-collectsub:
condition: service_healthy
volumes:
- ./container_files/guac:/guac:z
- blobstore:/tmp/blobstore
depsdev-collector:
networks: [ frontend ]
image: $GUAC_IMAGE
command: "/opt/guac/guaccollect deps_dev"
working_dir: /guac
restart: on-failure
environment:
- DEPS_DEV_APIKEY
depends_on:
guac-collectsub:
condition: service_healthy
volumes:
- ./container_files/guac:/guac:z
- blobstore:/tmp/blobstore
ports:
- "9091:9091" # for prometheus metrics
osv-certifier:
networks: [ frontend ]
image: $GUAC_IMAGE
command: "/opt/guac/guacone certifier osv"
working_dir: /guac
restart: on-failure
depends_on:
guac-collectsub:
condition: service_healthy
volumes:
- ./container_files/guac:/guac:z
guac-rest:
networks: [ frontend ]
image: $GUAC_IMAGE
command: "/opt/guac/guacrest"
working_dir: /guac
restart: on-failure
ports:
- "8081:8081"
volumes:
- ./container_files/guac:/guac:z
depends_on:
guac-graphql:
condition: service_healthy
healthcheck:
test:
[
"CMD",
"wget",
"-O-",
"http://localhost:8081/healthz"
]
interval: 10s
timeout: 10s
retries: 3
start_period: 5s
networks:
frontend:
driver: bridge
volumes:
blobstore: