forked from stratosphereips/stratocyberlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (58 loc) · 1.39 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
54
55
56
57
58
59
60
61
services:
hackerlab:
build: ./hackerlab
container_name: scl-hackerlab
hostname: hackerlab
restart: on-failure
volumes:
- ./hackerlab/data:/data
ports:
- "127.0.0.1:2222:22"
networks:
playground-net:
ipv4_address: 172.20.0.2
dashboard:
build: ./dashboard
container_name: scl-dashboard
hostname: dashboard
restart: on-failure
ports:
- "127.0.0.1:80:80"
- "127.0.0.1:8080:8080"
networks:
playground-net:
ipv4_address: 172.20.0.3
volumes:
- ./classes:/classes
- ./challenges:/challenges
- /var/run/docker.sock:/var/run/docker.sock
healthcheck:
test: ["CMD", "python", "-c", "'import requests; response = requests.get(\"http://localhost:80/\"); assert response.status_code == 200'"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
ollama:
image: ollama/ollama
container_name: scl-ollama
volumes:
- ./ollama:/root/.ollama
restart: on-failure
networks:
playground-net:
ipv4_address: 172.20.0.100
healthcheck:
test: ollama --version || exit 1
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
playground-net:
name: "playground-net"
driver: bridge
ipam:
driver: default
config:
- subnet: 172.20.0.0/24
gateway: 172.20.0.1