-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 801 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (36 loc) · 801 Bytes
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
version: '3.8'
services:
honeypot:
build: .
container_name: ssh-honeypot
ports:
- "2222:2222"
- "8080:8080"
volumes:
- ./logs:/app/logs
- ./data:/app/data
- ./sftp_root:/app/sftp_root
- ./honeypot.yaml:/app/honeypot.yaml
environment:
- TZ=UTC
restart: unless-stopped
cap_add:
- NET_ADMIN
networks:
- honeypot-net
healthcheck:
test: ["CMD", "python", "-c", "import socket; s=socket.socket(); s.settimeout(3); s.connect(('localhost', 2222))"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: '1.0'
memory: 512M
reservations:
memory: 256M
networks:
honeypot-net:
driver: bridge