forked from WillFantom/jumpbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (46 loc) · 1.38 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: "3.9"
services:
jumpbox:
container_name: jumpbox
image: ghcr.io/willfantom/jumpbox:latest
restart: unless-stopped
ports:
- ${ENDLESSH_PORT}:${ENDLESSH_PORT}/tcp
- ${SSHD_PORT}:${SSHD_PORT}/tcp
volumes:
- ./hostkeys:/etc/ssh/hostkeys.d
- ./logs:/var/log:rw
# - ./keys:/etc/ssh/keys.d # Include to use mounted keys rather than the ones baked in
environment:
- TZ=${TZ}
- SSHD_PORT=${SSHD_PORT}
- ENDLESSH_PORT=${ENDLESSH_PORT}
labels:
- "com.centurylinklabs.watchtower.scope=sshjumpbox"
- "com.centurylinklabs.watchtower.enable=true"
watchtower:
container_name: jumpbox_watchtower
image: containrrr/watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30 --scope sshjumpbox
labels:
- "com.centurylinklabs.watchtower.scope=sshjumpbox"
- "com.centurylinklabs.watchtower.enable=false"
fail2ban:
container_name: jumpbox_fail2ban
image: ghcr.io/willfantom/jumpbox-fail2ban:latest
restart: unless-stopped
cap_add:
- NET_ADMIN
- NET_RAW
network_mode: host
volumes:
- ./logs:/var/log:rw
environment:
- TZ=${TZ}
- SSHD_PORT=${SSHD_PORT}
labels:
- "com.centurylinklabs.watchtower.scope=sshjumpbox"
- "com.centurylinklabs.watchtower.enable=true"