-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.15 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
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: I8elieve1CanFly
SANDBOX_REPO: https://github.com/nategraf/mini-ipam-driver
CTF_FLAG: flag{trust_on_the_internet_is_a_way_to_get_eaten}
image: naumachia/login-ip.shell
expose:
- "23"
cap_add:
- NET_BIND_SERVICE
networks:
default:
ipv4_address: 172.30.0.2
client:
<<: *limits
image: naumachia/login.client
command: [python, /app/client.py]
restart: unless-stopped
environment:
SHELL_USER: piggy
SHELL_PASS: I8elieve1CanFly
networks:
default:
ipv4_address: 172.30.0.3
networks:
default:
driver: l2bridge
ipam:
driver: static
config:
- subnet: 172.30.0.0/28