-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
173 lines (165 loc) · 4.56 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
167
168
169
170
171
172
173
services:
db:
restart: always
image: "postgres:12.3-alpine"
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_PORT=${POSTGRES_PORT}
ports:
- "127.0.0.1:5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
networks:
- reconpoint_network
redis:
restart: always
image: "redis:alpine"
hostname: redis
networks:
- reconpoint_network
celery:
build:
context: ./web
restart: always
entrypoint: /usr/src/app/celery-entrypoint.sh
# command: celery -A reconPoint worker --autoscale=${MAX_CONCURRENCY},${MIN_CONCURRENCY} -l INFO
volumes:
- ./web:/usr/src/app
- github_repos:/usr/src/github
- wordlist:/usr/src/wordlist
- scan_results:/usr/src/scan_results
- gf_patterns:/root/.gf
- nuclei_templates:/root/nuclei-templates
- tool_config:/root/.config
- static_volume:/usr/src/app/staticfiles/
environment:
- DEBUG=0
- CELERY_BROKER=redis://redis:6379/0
- CELERY_BACKEND=redis://redis:6379/0
- DOMAIN_NAME=${DOMAIN_NAME}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_HOST=${POSTGRES_HOST}
- MAX_CONCURRENCY=${MAX_CONCURRENCY}
- MIN_CONCURRENCY=${MIN_CONCURRENCY}
depends_on:
- db
- redis
networks:
- reconpoint_network
celery-beat:
build: ./web
entrypoint: /usr/src/app/beat-entrypoint.sh
command: celery -A reconPoint beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler
environment:
- CELERY_BROKER=redis://redis:6379/0
- CELERY_BACKEND=redis://redis:6379/0
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_HOST=${POSTGRES_HOST}
depends_on:
- celery
- db
volumes:
- ./web:/usr/src/app
- github_repos:/usr/src/github
- wordlist:/usr/src/wordlist
- scan_results:/usr/src/scan_results
- gf_patterns:/root/.gf
- nuclei_templates:/root/nuclei-templates
- tool_config:/root/.config
networks:
- reconpoint_network
web:
build:
context: ./web
entrypoint: /usr/src/app/entrypoint.sh
restart: always
image: docker.pkg.github.com/khulnasoft/reconpoint/reconpoint:latest
environment:
- DEBUG=0
- CELERY_BROKER=redis://redis:6379/0
- CELERY_BACKEND=redis://redis:6379/0
- DOMAIN_NAME=${DOMAIN_NAME}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_HOST=${POSTGRES_HOST}
- DJANGO_SUPERUSER_PASSWORD=${DJANGO_SUPERUSER_PASSWORD}
volumes:
- ./web:/usr/src/app
- github_repos:/usr/src/github
- wordlist:/usr/src/wordlist
- scan_results:/usr/src/scan_results
- gf_patterns:/root/.gf
- nuclei_templates:/root/nuclei-templates
- tool_config:/root/.config
- static_volume:/usr/src/app/staticfiles/
ports:
- "127.0.0.1:8000:8000"
depends_on:
- db
- celery
- celery-beat
networks:
reconpoint_network:
aliases:
- reconpoint
proxy:
restart: always
image: nginx:alpine
ports:
- 8082:8082/tcp
- 443:443/tcp
depends_on:
- web
- db
- redis
secrets:
- source: proxy.ca
target: /etc/nginx/certs/reconpoint_chain.pem
- source: proxy.cert
target: /etc/nginx/certs/reconpoint.pem
- source: proxy.key
target: /etc/nginx/certs/reconpoint_rsa.key
volumes:
- ./config/nginx/reconpoint.conf:/etc/nginx/conf.d/reconpoint.conf:ro
- static_volume:/usr/src/app/staticfiles/
- scan_results:/usr/src/scan_results
networks:
- reconpoint_network
ollama:
image: ollama/ollama
container_name: ollama
volumes:
- ollama_data:/root/.ollama
ports:
- "11434:11434"
networks:
- reconpoint_network
networks:
reconpoint_network:
volumes:
tool_config:
postgres_data:
gf_patterns:
nuclei_templates:
github_repos:
wordlist:
scan_results:
static_volume:
ollama_data:
secrets:
proxy.ca:
file: ./secrets/certs/reconpoint_chain.pem
proxy.key:
file: ./secrets/certs/reconpoint_rsa.key
proxy.cert:
file: ./secrets/certs/reconpoint.pem