mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-12-22 00:34:26 +01:00
Add openssh service
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
7231d29b91
commit
aee30a0aaf
2
Makefile
2
Makefile
@ -13,7 +13,7 @@
|
||||
|
||||
DOCKER := docker
|
||||
|
||||
PROFILES := webserver wordpress adminer uptime-kuma portainer qbittorrent gitea jellyfin watchtower backup
|
||||
PROFILES := webserver wordpress adminer uptime-kuma portainer qbittorrent gitea jellyfin watchtower backup openssh
|
||||
PROFILE_CMD := $(addprefix --profile ,$(PROFILES))
|
||||
|
||||
COMPOSE_FILES := $(shell find docker-compose*.yml | sed -e 's/^/--file /')
|
||||
|
@ -56,6 +56,10 @@ jellyfin.bensuperpc.org {
|
||||
reverse_proxy jellyfin:8096
|
||||
}
|
||||
|
||||
ssh.bensuperpc.org {
|
||||
reverse_proxy openssh:2222
|
||||
}
|
||||
|
||||
link.bensuperpc.org {
|
||||
redir /rickroll https://www.youtube.com/watch?v=dQw4w9WgXcQ permanent
|
||||
redir /babyshark https://www.youtube.com/watch?v=XqZsoesa55w permanent
|
||||
|
25
docker-compose.openssh.yml
Normal file
25
docker-compose.openssh.yml
Normal file
@ -0,0 +1,25 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
# Openssh
|
||||
openssh:
|
||||
image: linuxserver/openssh-server:latest
|
||||
container_name: openssh
|
||||
profiles:
|
||||
- openssh
|
||||
restart: on-failure
|
||||
env_file:
|
||||
- env/openssh.env
|
||||
volumes:
|
||||
- openssh_config:/config
|
||||
- openssh_data:/data
|
||||
networks:
|
||||
- infra-network
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
|
||||
volumes:
|
||||
openssh_config:
|
||||
name: openssh_config
|
||||
openssh_data:
|
||||
name: openssh_data
|
11
env/openssh.env
vendored
Normal file
11
env/openssh.env
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
PUID=1000
|
||||
PGID=1000
|
||||
PUBLIC_KEY=
|
||||
# PUBLIC_KEY_FILE=
|
||||
# PUBLIC_KEY_DIR=
|
||||
# PUBLIC_KEY_URL=
|
||||
SUDO_ACCESS=false
|
||||
PASSWORD_ACCESS=false
|
||||
# USER_PASSWORD=
|
||||
# USER_PASSWORD_FILE=
|
||||
# USER_NAME=
|
Loading…
Reference in New Issue
Block a user