-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
110 lines (107 loc) · 2.85 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
version: "3.3"
services:
minio:
image: minio/minio
entrypoint: sh
restart: always
command: -c "minio server --address 0.0.0.0:9000 --console-address :8070 /data"
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
ports:
- "${MINIO_PORT1}:9000"
- "${MINIO_PORT2}:8070"
healthcheck:
test: timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1
interval: 5s
timeout: 5s
retries: 3
volumes:
- minio_data:/data
createbuckets:
image: minio/mc
depends_on:
- minio
env_file:
- ./.env
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:${MINIO_PORT1} ${MINIO_ACCESS_KEY} ${MINIO_SECRET_KEY};
/usr/bin/mc mb myminio/bhunters;
/usr/bin/mc policy set public myminio/bhunters;
exit 0;
"
redis:
image: redis/redis-stack-server:6.2.6-v12
ports:
- "6379:6379"
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 10
environment:
- REDIS_ARGS= --repl-diskless-load disabled --repl-diskless-sync yes --repl-diskless-sync-delay 0 --appendonly yes --loglevel debug --requirepass ${REDIS_PASS}
volumes:
- redis_data:/data
mongo:
image: mongo:latest
container_name: my-mongo-container
restart: always
ports:
- "${MONGO_PORT}:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASS}
volumes:
- mongo_data:/data/db
- ./config/mongod.conf:/etc/mongod.conf
- ./config/mongo-init-scripts/init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
command: mongod --config /etc/mongod.conf --auth
b-hunters-system:
image: certpl/karton-system:v5.5.0
restart: always
volumes:
- ./config/b-hunters.ini:/etc/karton/karton.ini
entrypoint: karton-system
command: --setup-bucket
b-hunters-dashboard:
image: certpl/karton-dashboard:v1.6.0
restart: always
depends_on:
- minio
- b-hunters-system
volumes:
- ./config/b-hunters.ini:/etc/karton/karton.ini
ports:
- "6500:5000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/varz"]
interval: 30s
timeout: 20s
retries: 3
b-hunters-stuck-handler:
image: bormaa/b-hunters:latest
restart: always
volumes:
- ./config/b-hunters.ini:/etc/b-hunters/b-hunters.ini
depends_on:
- b-hunters-system
command: status -s
b-hunters-xray-server:
image: bormaa/xray:latest
ports:
- "8080:8080"
restart: always
volumes:
- ./config/xrayserver/:/xray/
- xray_data:/xraydata/
depends_on:
- b-hunters-system
command: ./xray reverse
volumes:
minio_data:
redis_data:
mongo_data:
xray_data: