-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
117 lines (117 loc) · 3.18 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
version: "3.3"
services:
minio:
image: minio/minio
entrypoint: sh
command: -c "mkdir -p /data/mwdb && minio server --address 0.0.0.0:9000 --console-address :8070 /data"
environment:
MINIO_ACCESS_KEY: mwdb
MINIO_SECRET_KEY: mwdbmwdb
ports:
- "127.0.0.1:8090:9000"
- "127.0.0.1:8070:8070"
healthcheck:
test: timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1
interval: 5s
timeout: 5s
retries: 3
postgres:
image: postgres:17.2
environment:
POSTGRES_USER: mwdb
POSTGRES_DB: mwdb
POSTGRES_PASSWORD: mwdbsecretpass
healthcheck:
test: ["CMD", "pg_isready", "-U", "mwdb"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:alpine
ports:
- "127.0.0.1:8379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 10
mwdb:
image: certpl/mwdb:v2.14.0
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- ./config/karton.docker.ini:/etc/karton/karton.ini
environment:
MWDB_REDIS_URI: "redis://redis/"
MWDB_POSTGRES_URI: "postgresql://mwdb:mwdbsecretpass@postgres/mwdb"
MWDB_ADMIN_PASSWORD: "admin"
MWDB_SECRET_KEY: "secretkey"
MWDB_STORAGE_PROVIDER: "s3"
MWDB_HASH_PATHING: "0"
MWDB_S3_STORAGE_ENDPOINT: "minio:9000"
MWDB_S3_STORAGE_ACCESS_KEY: "mwdb"
MWDB_S3_STORAGE_SECRET_KEY: "mwdbmwdb"
MWDB_S3_STORAGE_BUCKET_NAME: "mwdb"
MWDB_ENABLE_KARTON: "1"
mwdb-web:
depends_on:
- mwdb
image: certpl/mwdb-web:v2.14.0
ports:
- "127.0.0.1:8080:80"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/api/server"]
interval: 30s
timeout: 20s
retries: 3
karton-system:
image: certpl/karton-system:v5.5.1
depends_on:
minio:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- ./config/karton.docker.ini:/etc/karton/karton.ini
entrypoint: karton-system
command: --setup-bucket
karton-classifier:
image: certpl/karton-classifier:v2.0.0
depends_on:
- karton-system
volumes:
- ./config/karton.docker.ini:/etc/karton/karton.ini
karton-dashboard:
image: certpl/karton-dashboard:v1.6.0
depends_on:
- karton-system
volumes:
- ./config/karton.docker.ini:/etc/karton/karton.ini
ports:
- "127.0.0.1:8030:5000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/varz"]
interval: 30s
timeout: 20s
retries: 3
karton-mwdb-reporter:
image: certpl/karton-mwdb-reporter:v1.3.0
depends_on:
- karton-system
- mwdb-web
volumes:
- ./config/karton.docker.ini:/etc/karton/karton.ini
karton-config-extractor:
image: certpl/karton-config-extractor:v2.3.1
depends_on:
- karton-system
- mwdb-web
entrypoint: karton-config-extractor --modules /opt/malduck-modules/
volumes:
- ./config/karton.docker.ini:/etc/karton/karton.ini
- ./malduck-modules/:/opt/malduck-modules