-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
166 lines (155 loc) · 4.92 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
---
version: '3'
services:
greenwave: &greenwave
build: .
image: greenwave
user: ${DEV_USER_ID:-1000}
working_dir: /src
env_file: ["docker/dev.env"]
command: ["bash", "-c", "./docker/dev-command.sh"]
volumes:
- ./:/src:ro,z
- ./docker/home:/home/dev:rw,z
- ./docker/greenwave-settings.py:/etc/greenwave/settings.py:ro,z
- ./conf/policies/:/etc/greenwave/policies/:ro,z
- ./conf/subject_types/:/etc/greenwave/subject_types/:ro,z
ports:
- 127.0.0.1:8080:8080
healthcheck: &greenwave-healthcheck
test: >-
/src/docker/docker-entrypoint.sh python -c 'import requests;
requests.get("http://127.0.0.1:8080/healthcheck").raise_for_status();'
interval: 1s
timeout: 5s
retries: 30
depends_on:
- memcached
- resultsdb
- waiverdb
- statsd
statsd:
image: quay.io/prometheus/statsd-exporter@sha256:4e7a1f00b9b23ef0c5b4fdbb7f4748bdc218cfdff04acc8033bc5b9f7c15009d
ports:
- 127.0.0.1:9102:9102 # http
- 127.0.0.1:9125:9125 # statsd
resultsdb-db: &resultsdb-db
image: postgres:14.7-alpine@sha256:07985c5c5e01ee550b30c67a2cf806f8b08b32f74e3f24c4cbef31305ef5776d
restart: always
env_file: ["docker/resultsdb-db.env"]
healthcheck:
<<: *greenwave-healthcheck
test: "pg_isready -U postgres || exit 1"
resultsdb:
image: quay.io/factory2/resultsdb@sha256:627da20292f062c59dcdb8a0efd73900f430facad6d2c71b44bb281a67089a69
environment:
- GREENWAVE_LISTENERS=${GREENWAVE_LISTENERS:-1}
command: ["bash", "-c", "/start.sh"]
volumes:
- ./docker/home:/home/dev:rw,z
- ./docker/resultsdb-command.sh:/start.sh:ro,z
- ./docker/resultsdb-settings.py:/etc/resultsdb/settings.py:ro,z
- ./docker/resultsdb.conf:/etc/httpd/conf.d/resultsdb.conf:ro,z
ports:
- 127.0.0.1:5001:5001
healthcheck:
<<: *greenwave-healthcheck
test: >-
/app/entrypoint.sh python -c 'import requests;
requests.get("http://127.0.0.1:5001/api/v2.0/healthcheck").raise_for_status();'
depends_on:
- resultsdb-db
waiverdb-db:
<<: *resultsdb-db
env_file: ["docker/waiverdb-db.env"]
waiverdb:
image: quay.io/factory2/waiverdb@sha256:4e3b8c380bea13ed30f19f0108b6cc64d9264ae7dab45a89d0431cdf0160a0b3
env_file: ["docker/waiverdb.env"]
environment:
- GREENWAVE_LISTENERS=${GREENWAVE_LISTENERS:-1}
command: ["bash", "-c", "/start.sh"]
volumes:
- ./docker/home:/home/dev:rw,z
- ./docker/waiverdb-command.sh:/start.sh:ro,z
- ./docker/waiverdb-settings.py:/etc/waiverdb/settings.py:ro,z
- ./docker/client_secrets.json:/etc/secret/client_secrets.json:ro,z
ports:
- 127.0.0.1:5004:5004
user: '0'
healthcheck:
<<: *greenwave-healthcheck
test: >-
/app/entrypoint.sh python -c 'import requests;
requests.get("http://127.0.0.1:5004/healthcheck").raise_for_status();'
depends_on:
- waiverdb-db
memcached:
image: "quay.io/factory2/memcached@sha256:49d8e413ff528ce4be6320d432e3fcd7f691a8ad2c9b5784dc58b1054a1b45fb"
ports:
- 127.0.0.1:11211:11211
resultsdb-listener:
<<: *greenwave
image: greenwave
command:
- "gunicorn"
- "--reload"
- "--workers=2"
- "--threads=2"
- "--bind=0.0.0.0:8082"
- "--access-logfile=-"
- "--enable-stdio-inheritance"
- "greenwave.resultsdb_listener:app"
ports:
- 127.0.0.1:8082:8082
deploy:
replicas: ${GREENWAVE_LISTENERS:-1}
waiverdb-listener:
<<: *greenwave
image: greenwave
command:
- "gunicorn"
- "--reload"
- "--workers=2"
- "--threads=2"
- "--bind=0.0.0.0:8083"
- "--access-logfile=-"
- "--enable-stdio-inheritance"
- "greenwave.waiverdb_listener:app"
ports:
- 127.0.0.1:8083:8083
deploy:
replicas: ${GREENWAVE_LISTENERS:-1}
umb:
image: images.paas.redhat.com/exd-sp-guild-c3i/umb:latest@sha256:4a543596c310fe1b21480dd4ca25bc54390831434376b97040bc8da11cd840ac
restart: unless-stopped
command:
- "java"
- "-jar"
- "/usr/share/umb/umb.jar"
- "--spring.config.location=/etc/umb.yml"
volumes:
- ./docker/umb.yml:/etc/umb.yml:ro,z
ports:
- 127.0.0.1:5671:5671 # amqp
- 127.0.0.1:61612:61612 # stomp
deploy:
replicas: ${GREENWAVE_LISTENERS:-1}
jaeger:
image: quay.io/jaegertracing/all-in-one:latest@sha256:7e9591218e7ddd51e568ef892e3ea190ae420ecf97c4d718910a3f57e076c216
ports:
- 127.0.0.1:6831:6831/udp
- 127.0.0.1:6832:6832/udp
- 127.0.0.1:5778:5778
- 127.0.0.1:16686:16686
- 127.0.0.1:4317:4317
- 127.0.0.1:4318:4318
- 127.0.0.1:14250:14250
- 127.0.0.1:14268:14268
- 127.0.0.1:14269:14269
- 127.0.0.1:9411:9411
environment:
- COLLECTOR_ZIPKIN_HOST_PORT=:9411
- COLLECTOR_OTLP_ENABLED=true
networks:
default:
driver: bridge