-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.94 KB
/
docker-compose.yml
File metadata and controls
56 lines (52 loc) · 1.94 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
# this is the docker-compose version we are using
version: '3'
# in here we're defining all services started by the docker-compose
services:
# first we have the redis-db which is used for
# the current session of the mica-server
# it includes infos about attacks which need to be processed
# as well as the hostnames of all available victims
mica-cache:
image: "redis"
container_name: mica-cache
ports:
- "6379:6379"
volumes:
- ~/redis:/data
# mica-registry which contains all images build by the mica-server
mica-registry:
image: "registry:2"
container_name: mica-registry
ports:
- "5000:5000"
volumes:
- ~/docker:/var/lib/registry
# mica-server is the central component of the mica-framework
# it builds images for each attack and
# provides a extensible RESTful-API for the CLI- and Agent-Communication
# between those and the the server
mica-server:
build: .
dns:
- 8.8.8.8 # google dns server for apt-get update / install
- 8.8.4.4 # another google dns server for apt-get update / install
ports:
- "80:80"
- "443:443"
privileged: true
depends_on:
- mica-cache
- mica-registry
volumes:
# we are using the host-docker client therefore! that's much more convenient
- /var/run/docker.sock:/var/run/docker.sock
- ~/.ssh:/tmp/.ssh
environment:
- REDIS_URL=mica-cache # through the used redis-client we do not need to use redis://container:port
- DOCKERFILE_URL=https://raw.githubusercontent.com/mica-framework/tools/master/docker/module_image/Dockerfile
#### CUSTOMIZE YOUR MiCA-SERVER BELOW HERE! #####
- REGISTRY_URL= # e.g. localhost / 127.0.0.1 / hub.docker.com
- SYSLOG_RECEIVER=IP-ADDRESS:PORT # e.g. 127.0.0.1:512
- ATTACK_MODULE_REPOSITORY_SSH= # e.g. git@github.com:mica-framework/attack-modules.git
- MODULE_BRANCH=master
#### END OF CUSTOMIZATION ####