commit 93b9b0c6008ccc2d742f5f119a11f77bcc589c40 Author: Dan MacLeod Date: Thu Mar 7 13:27:11 2024 +1030 Readme and base Dockerfile and docker-compose.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4200f4c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM docker.io/archlinux:latest + +RUN pacman -Sy --noconfirm openssh git vim go zsh curl +RUN /usr/bin/ssh-keygen -A +RUN /usr/bin/sed -i 's/bash/zsh/' /etc/passwd + +EXPOSE 22 + +CMD ["/usr/sbin/sshd", "-D"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..a04ce64 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Winton + +This is the docker configuration for the winton ssh server inside the network. + +Once accessed it can reach all other ssh destinations inside the house. Do no leak ssh credentials. diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..d2dd7e9 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,14 @@ +version: "3.7" +services: + winton: + build: + context: . + ports: + - "8022:22" + volumes: + - /root/winton/home:/root + restart: always + tty: true + domainname: 15bt.xyz + hostname: winton +