22 lines
770 B
Plaintext
22 lines
770 B
Plaintext
IMAGE=openssh
|
|
|
|
CONTNAME=$(IMAGE)-1
|
|
|
|
DATAVOLUME=/home/_dockervol/openssh
|
|
|
|
STARTOPT= \
|
|
--hostname bastion \
|
|
-e TZ="Europe/Paris" \
|
|
-p 22122:22 \
|
|
-v $(DATAVOLUME)/homeben:/home/ben \
|
|
-v $(DATAVOLUME)/etcssh/ssh_host_ecdsa_key:/etc/ssh/ssh_host_ecdsa_key \
|
|
-v $(DATAVOLUME)/etcssh/ssh_host_ecdsa_key.pub:/etc/ssh/ssh_host_ecdsa_key.pub \
|
|
-v $(DATAVOLUME)/etcssh/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key \
|
|
-v $(DATAVOLUME)/etcssh/ssh_host_ed25519_key.pub:/etc/ssh/ssh_host_ed25519_key.pub \
|
|
-v $(DATAVOLUME)/etcssh/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key \
|
|
-v $(DATAVOLUME)/etcssh/ssh_host_rsa_key.pub:/etc/ssh/ssh_host_rsa_key.pub \
|
|
-v $(DATAVOLUME)/log/ssh.log:/var/log/ssh.log \
|
|
-v $(DATAVOLUME)/log/auth.log:/var/log/auth.log \
|
|
--name $(CONTNAME) \
|
|
$(IMAGE)
|