-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
53 lines (52 loc) · 1.18 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
52
53
name: paradigm-ctf
services:
database:
container_name: database
image: redis/redis-stack:latest
ports:
- '6379:6379'
- '8001:8001'
environment:
- REDIS_ARGS=--save 60 1
networks:
- ctf_network
volumes:
- database:/data
ctf-server-orchestrator:
container_name: orchestrator
image: ghcr.io/openzeppelin/ctf-infra:latest
build: .
user: root
command: uvicorn ctf_server:orchestrator --host 0.0.0.0 --port 7283
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- "7283:7283"
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: ghcr.io/openzeppelin/ctf-infra:latest
build: .
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
volumes:
database:
driver: local
networks:
ctf_network:
name: paradigmctf