-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (60 loc) · 1.47 KB
/
docker-compose.yml
File metadata and controls
65 lines (60 loc) · 1.47 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
version: "3"
services:
database:
container_name: database
image: redis/redis-stack:latest
environment:
- REDIS_ARGS=--save 60 1
networks:
- ctf_network
volumes:
- database:/data
ctf-server-orchestrator:
container_name: orchestrator
image: paradigmctf.py:latest
build: /home/ret2basic/paradigm-ctf-infrastructure/paradigmctf.py
user: root
command: uvicorn ctf_server:orchestrator --host 0.0.0.0 --port 7283
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- BACKEND=docker
- DATABASE=redis
- REDIS_URL=redis://database:6379/0
networks:
- ctf_network
depends_on:
- database
ctf-server-anvil-proxy:
container_name: anvil-proxy
image: paradigmctf.py:latest
build: /home/ret2basic/paradigm-ctf-infrastructure/paradigmctf.py
command: uvicorn ctf_server:anvil_proxy --host 0.0.0.0 --port 8545
ports:
- "8545:8545"
environment:
- DATABASE=redis
- REDIS_URL=redis://database:6379/0
networks:
- ctf_network
depends_on:
- database
challenge:
container_name: challenge
image: challenge
build:
context: .
target: challenge
command: socat TCP-LISTEN:1337,reuseaddr,fork exec:"python3 -u challenge/challenge.py"
expose:
- 1337
ports:
- "1337:1337"
networks:
- ctf_network
volumes:
database:
driver: local
networks:
ctf_network:
name: paradigmctf