-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
72 lines (68 loc) · 2.04 KB
/
docker-compose.yaml
File metadata and controls
72 lines (68 loc) · 2.04 KB
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
services:
temporal:
image: temporalio/admin-tools:latest
ports:
- "7233:7233"
- "8233:8233"
command: ["temporal", "server", "start-dev", "--ip", "0.0.0.0", "--namespace", "version-guard-dev"]
healthcheck:
test: ["CMD", "temporal", "operator", "cluster", "health", "--address", "localhost:7233"]
interval: 5s
timeout: 5s
retries: 20
start_period: 10s
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
minio-init:
image: minio/mc:latest
depends_on:
- minio
entrypoint: >
sh -c "
sleep 3 &&
mc alias set local http://minio:9000 minioadmin minioadmin &&
mc mb --ignore-existing local/version-guard-snapshots &&
echo 'Bucket created'
"
endoflife:
image: nginx:alpine
volumes:
- ./deploy/endoflife-override/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./deploy/endoflife-override/api:/data/api:ro
ports:
- "8082:8080"
version-guard:
build:
context: .
dockerfile: deploy/Dockerfile
depends_on:
temporal:
condition: service_healthy
minio:
condition: service_started
environment:
TEMPORAL_ENDPOINT: temporal:7233
TEMPORAL_NAMESPACE: version-guard-dev
S3_BUCKET: version-guard-snapshots
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: minioadmin
AWS_SECRET_ACCESS_KEY: minioadmin
S3_ENDPOINT: http://minio:9000
WIZ_CLIENT_ID_SECRET: ${WIZ_CLIENT_ID_SECRET:-}
WIZ_CLIENT_SECRET_SECRET: ${WIZ_CLIENT_SECRET_SECRET:-}
WIZ_REPORT_IDS: ${WIZ_REPORT_IDS:-}
EOL_BASE_URL: http://endoflife:8080/api
SCHEDULE_ENABLED: ${SCHEDULE_ENABLED:-false}
SCHEDULE_CRON: ${SCHEDULE_CRON:-0 6 * * *}
SCHEDULE_ID: ${SCHEDULE_ID:-version-guard-scan}
SCHEDULE_JITTER: ${SCHEDULE_JITTER:-5m}
ports:
- "8080:8080"
- "8081:8081"