-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
51 lines (47 loc) · 1.31 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
version: '2.4'
x-limits: &limits
pids_limit: 1024
cpu_shares: 256
mem_limit: 512m
logging:
options:
max-size: 10m
max-file: '3'
services:
shell:
<<: *limits
build:
context: ./shell
args:
USERNAME: piggy
PASSWORD: ShesABrickH0use
NAUMOTP_SECRET: CPE7C5JFZEYRBDL6X25ISBOQK2PE2A54F3U3MQOX6IVNADWNXYEA
SANDBOX_REPO: https://github.com/catdaddy97/catfacts.git
CTF_FLAG: flag{brick_walls_dont_help_if_you_hold_the_door_open}
image: naumachia/login-otp.shell
networks:
default:
ipv4_address: 172.30.0.2
expose:
- "23"
cap_add:
- NET_BIND_SERVICE
client:
<<: *limits
image: naumachia/login.client
command: [python, /app/client.py]
environment:
NAUMOTP_SECRET: CPE7C5JFZEYRBDL6X25ISBOQK2PE2A54F3U3MQOX6IVNADWNXYEA
SHELL_USER: piggy
SHELL_PASS: ShesABrickH0use
networks:
default:
ipv4_address: 172.30.0.3
restart: unless-stopped
networks:
default:
driver: l2bridge
ipam:
driver: static
config:
- subnet: 172.30.0.0/28