From 72e2e6e4f9ddb403b0f09953faa3240e02f25272 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 27 Nov 2022 21:21:58 +0100 Subject: [PATCH] Add endlessh and yopass --- .../system/docker-compose-endlessh.service | 17 +++++++++++++++++ .../system/docker-compose-yopass.service | 17 +++++++++++++++++ opt/endlessh/docker-compose.yml | 12 ++++++++++++ opt/yopass/docker-compose.yml | 15 +++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 etc/systemd/system/docker-compose-endlessh.service create mode 100644 etc/systemd/system/docker-compose-yopass.service create mode 100644 opt/endlessh/docker-compose.yml create mode 100644 opt/yopass/docker-compose.yml diff --git a/etc/systemd/system/docker-compose-endlessh.service b/etc/systemd/system/docker-compose-endlessh.service new file mode 100644 index 0000000..fe2ecf1 --- /dev/null +++ b/etc/systemd/system/docker-compose-endlessh.service @@ -0,0 +1,17 @@ +[Unit] +Description=Docker Compose Endlessh Application Service +Requires=docker.service +After=docker.service + +[Service] +WorkingDirectory=/opt/endlessh +ExecStart=/usr/bin/docker-compose --project-name endlessh up +ExecStop=/usr/bin/docker-compose --project-name endlessh down +TimeoutStartSec=0 +Restart=on-failure +StartLimitIntervalSec=60 +StartLimitBurst=3 + +[Install] +WantedBy=multi-user.target + diff --git a/etc/systemd/system/docker-compose-yopass.service b/etc/systemd/system/docker-compose-yopass.service new file mode 100644 index 0000000..9f52b5f --- /dev/null +++ b/etc/systemd/system/docker-compose-yopass.service @@ -0,0 +1,17 @@ +[Unit] +Description=Docker Compose Yopass Application Service +Requires=docker.service +After=docker.service + +[Service] +WorkingDirectory=/opt/yopass +ExecStart=/usr/bin/docker-compose --project-name yopass up +ExecStop=/usr/bin/docker-compose --project-name yopass down +TimeoutStartSec=0 +Restart=on-failure +StartLimitIntervalSec=60 +StartLimitBurst=3 + +[Install] +WantedBy=multi-user.target + diff --git a/opt/endlessh/docker-compose.yml b/opt/endlessh/docker-compose.yml new file mode 100644 index 0000000..b8b99f9 --- /dev/null +++ b/opt/endlessh/docker-compose.yml @@ -0,0 +1,12 @@ +version: "2.1" +services: + endlessh: + image: lscr.io/linuxserver/endlessh:latest + container_name: endlessh + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Stockholm + ports: + - 3322:2222 + restart: unless-stopped diff --git a/opt/yopass/docker-compose.yml b/opt/yopass/docker-compose.yml new file mode 100644 index 0000000..c11c845 --- /dev/null +++ b/opt/yopass/docker-compose.yml @@ -0,0 +1,15 @@ +version: "3.0" + +services: + memcached: + image: memcached + restart: always + expose: + - "11211" + + yopass: + image: jhaals/yopass + restart: always + ports: + - "8007:80" + command: "--memcached=memcached:11211 --port 80"