-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (70 loc) · 1.9 KB
/
Copy pathdocker-compose.yml
File metadata and controls
82 lines (70 loc) · 1.9 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
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
# TRACE_THE_WUMPUS
# Copyright (C) 2014-2025 Leitwert GmbH
#
# This software is distributed under the terms of the MIT license.
# It can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
#
# Author Johann SCHLAMP <schlamp@leitwert.net>
#
# ┌─────────┐
# │ INSTALL │
# └─────────┘
#
# • Install required software (docker and docker-compose):
# ~# apt-get install docker.io docker-compose-v2
#
# NOTE: To build the docker container, an Internet connection is needed
# for obtaining the docker base image (python:slim) and additional
# software via apt-get and pip.
#
# ┌─────────┐
# │ STARTUP │
# └─────────┘
#
# • Build docker container
# ~$ docker compose build
#
# • Run the framework
# ~$ docker compose up
#
# • Point your traceroute tool to the WUMPUS quest
# ~$ traceroute6 wumpus.quest
#
# NOTE: No changes should be required to the configuration below.
#
name: wumpus
services:
wumpus:
container_name: wumpus
image: wumpus
build:
target: wumpus
dockerfile: ../wumpus/Dockerfile
context: ../wumpus
command: bash runner.sh
working_dir: /srv/wumpus/sh
volumes:
- type: bind
source: ./src
target: /srv/wumpus/src
- type: bind
source: ../wumpus/src/wumpus
target: /srv/wumpus/src/wumpus
read_only: true
networks:
wumpus:
ipv6_address: 2a06:2904::2
ipv4_address: 194.145.125.130
networks:
wumpus:
driver_opts:
com.docker.network.bridge.name: wumpus
enable_ipv6: true
ipam:
config:
- subnet: 2a06:2904::/30
ip_range: 2a06:2904::/30
gateway: 2a06:2904::1
- subnet: 194.145.125.128/25
ip_range: 194.145.125.128/25
gateway: 194.145.125.129