forked from its-a-feature/Mythic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·186 lines (186 loc) · 5.33 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
174
175
176
177
178
179
180
181
182
183
184
185
186
services:
mythic_documentation:
build: ./documentation-docker
command: server
container_name: mythic_documentation
image: mythic_documentation
labels:
name: mythic_documentation
logging:
driver: json-file
options:
max-file: "1"
max-size: 10m
ports:
- ${DOCUMENTATION_PORT}:1313
restart: always
volumes:
- ./documentation-docker/:/src
mythic_graphql:
build: ./hasura-docker
container_name: mythic_graphql
depends_on:
- mythic_postgres
environment:
- HASURA_GRAPHQL_DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
- HASURA_GRAPHQL_METADATA_DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
- HASURA_GRAPHQL_ENABLE_CONSOLE=true
- HASURA_GRAPHQL_DEV_MODE=true
- HASURA_GRAPHQL_ADMIN_SECRET=${HASURA_SECRET}
- HASURA_GRAPHQL_INSECURE_SKIP_TLS_VERIFY=true
- HASURA_GRAPHQL_SERVER_PORT=${HASURA_PORT}
- HASURA_GRAPHQL_METADATA_DIR=/metadata
- HASURA_GRAPHQL_LIVE_QUERIES_MULTIPLEXED_REFETCH_INTERVAL=500
- HASURA_GRAPHQL_AUTH_HOOK=http://${MYTHIC_SERVER_HOST}:${MYTHIC_SERVER_PORT}/graphql/webhook
- MYTHIC_ACTIONS_URL_BASE=http://${MYTHIC_SERVER_HOST}:${MYTHIC_SERVER_PORT}/api/v1.4
image: mythic_graphql
labels:
name: mythic_graphql
logging:
driver: json-file
options:
max-file: "1"
max-size: 10m
network_mode: host
restart: always
volumes:
- ./hasura-docker/metadata:/metadata
mythic_nginx:
build: ./nginx-docker
container_name: mythic_nginx
environment:
- DOCUMENTATION_HOST=${DOCUMENTATION_HOST}
- DOCUMENTATION_PORT=${DOCUMENTATION_PORT}
- NGINX_PORT=${NGINX_PORT}
- MYTHIC_SERVER_HOST=${MYTHIC_SERVER_HOST}
- MYTHIC_SERVER_PORT=${MYTHIC_SERVER_PORT}
- HASURA_HOST=${HASURA_HOST}
- HASURA_PORT=${HASURA_PORT}
- NEW_UI_HOST=${MYTHIC_SERVER_HOST}
- NEW_UI_PORT=3000
image: mythic_nginx
labels:
name: mythic_nginx
logging:
driver: json-file
options:
max-file: "1"
max-size: 10m
network_mode: host
restart: always
volumes:
- ./nginx-docker/ssl:/etc/ssl/private
- ./nginx-docker/config:/etc/nginx
mythic_postgres:
build: ./postgres-docker
command: postgres -c "max_connections=400"
container_name: mythic_postgres
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
image: mythic_postgres
labels:
name: mythic_postgres
logging:
driver: json-file
options:
max-file: "1"
max-size: 10m
ports:
- ${POSTGRES_PORT}:5432
restart: always
volumes:
- ./postgres-docker/database:/var/lib/postgresql/data
mythic_rabbitmq:
build: ./rabbitmq-docker
container_name: mythic_rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}
- RABBITMQ_DEFAULT_VHOST=${RABBITMQ_VHOST}
image: mythic_rabbitmq
labels:
name: mythic_rabbitmq
logging:
driver: json-file
options:
max-file: "1"
max-size: 10m
ports:
- ${RABBITMQ_PORT}:5672
restart: always
volumes:
- ./rabbitmq-docker/storage:/var/lib/rabbitmq
mythic_react:
build: ./mythic-react-docker
container_name: mythic_react
image: mythic_react
labels:
name: mythic_react
logging:
driver: json-file
options:
max-file: "1"
max-size: 10m
network_mode: host
restart: always
volumes:
- ./mythic-react-docker/mythic:/mythic_react
mythic_redis:
build: ./redis-docker
container_name: mythic_redis
image: mythic_redis
labels:
name: mythic_redis
logging:
driver: json-file
options:
max-file: "1"
max-size: 10m
ports:
- ${REDIS_PORT}:6379
restart: always
mythic_server:
build: ./mythic-docker
command: /bin/bash /Mythic/start_mythic_server.sh
container_name: mythic_server
depends_on:
- mythic_postgres
environment:
- MYTHIC_POSTGRES_HOST=${POSTGRES_HOST}
- MYTHIC_POSTGRES_PORT=${POSTGRES_PORT}
- MYTHIC_POSTGRES_DB=${POSTGRES_DB}
- MYTHIC_POSTGRES_USER=${POSTGRES_USER}
- MYTHIC_POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- MYTHIC_RABBITMQ_HOST=${RABBITMQ_HOST}
- MYTHIC_RABBITMQ_PORT=${RABBITMQ_PORT}
- MYTHIC_RABBITMQ_USER=${RABBITMQ_USER}
- MYTHIC_RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD}
- MYTHIC_RABBITMQ_VHOST=${RABBITMQ_VHOST}
- MYTHIC_JWT_SECRET=${JWT_SECRET}
- MYTHIC_REDIS_PORT=${REDIS_PORT}
- MYTHIC_DEBUG
- MYTHIC_ADMIN_PASSWORD
- MYTHIC_ADMIN_USER
- MYTHIC_SERVER_PORT
- MYTHIC_ALLOWED_IP_BLOCKS=${ALLOWED_IP_BLOCKS}
- MYTHIC_DEFAULT_OPERATION_NAME=${DEFAULT_OPERATION_NAME}
- MYTHIC_NGINX_PORT=${NGINX_PORT}
- MYTHIC_SERVER_HEADER=${SERVER_HEADER}
- MYTHIC_WEB_LOG_SIZE=${WEB_LOG_SIZE}
- MYTHIC_WEB_KEEP_LOGS=${WEB_KEEP_LOGS}
- MYTHIC_SIEM_LOG_NAME=${SIEM_LOG_NAME}
image: mythic_server
labels:
name: mythic_server
logging:
driver: json-file
options:
max-file: "1"
max-size: 10m
network_mode: host
restart: always
volumes:
- ./mythic-docker:/Mythic
version: "2.4"