Readme and base Dockerfile and docker-compose.yaml

This commit is contained in:
2024-03-07 13:27:11 +10:30
commit 93b9b0c600
3 changed files with 28 additions and 0 deletions

9
Dockerfile Normal file
View File

@@ -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"]

5
README.md Normal file
View File

@@ -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.

14
docker-compose.yaml Normal file
View File

@@ -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