From e51e4132250831a300a364add8ead0e086662c72 Mon Sep 17 00:00:00 2001 From: "joaovictor.local" <63271570+joaovictor-local@users.noreply.github.com> Date: Mon, 29 Jul 2024 23:24:46 -0300 Subject: [PATCH] App Submission: Samba (#1161) Co-authored-by: sharknoon Co-authored-by: nmfretz --- samba/data/samba/smb.conf | 19 +++++++++++++++++ samba/docker-compose.yml | 28 +++++++++++++++++++++++++ samba/umbrel-app.yml | 43 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 samba/data/samba/smb.conf create mode 100644 samba/docker-compose.yml create mode 100644 samba/umbrel-app.yml diff --git a/samba/data/samba/smb.conf b/samba/data/samba/smb.conf new file mode 100644 index 0000000000..5d43d0727d --- /dev/null +++ b/samba/data/samba/smb.conf @@ -0,0 +1,19 @@ +[global] + security = user + server min protocol = SMB2 + + # disable printing services + load printers = no + printing = bsd + printcap name = /dev/null + disable spoolss = yes + +[storage] + path = /storage + comment = Shared + valid users = @smb + browseable = yes + writable = yes + read only = no + force user = umbrel + force group = smb \ No newline at end of file diff --git a/samba/docker-compose.yml b/samba/docker-compose.yml new file mode 100644 index 0000000000..b389179954 --- /dev/null +++ b/samba/docker-compose.yml @@ -0,0 +1,28 @@ +version: '3.7' + +services: + app_proxy: + environment: + APP_HOST: samba_homepage_1 + APP_PORT: 80 + + homepage: + image: loficafe/static-web-server-samba:1.0.1@sha256:783667f052d9535bb75946ff9bc807989b041e25437ef10c30b291589d041e6e + restart: on-failure + user: "1000:1000" + volumes: + - ${APP_DATA_DIR}/data/samba/smb.conf:/public/smb.conf:ro + + server: + image: dockurr/samba:4.20.1@sha256:9a57887c0be1242ee2e1381653619a656820e1aee8e271885662d04c2c367be8 + restart: on-failure + environment: + USER: umbrel + PASS: ${APP_PASSWORD} + UID: 1000 + GID: 1000 + ports: + - '446:445' + volumes: + - ${APP_DATA_DIR}/data/samba/smb.conf:/etc/samba/smb.conf + - ${UMBREL_ROOT}/data/storage:/storage diff --git a/samba/umbrel-app.yml b/samba/umbrel-app.yml new file mode 100644 index 0000000000..558f4f6c1a --- /dev/null +++ b/samba/umbrel-app.yml @@ -0,0 +1,43 @@ +manifestVersion: 1 +id: samba +name: Samba +tagline: Make your storage accessible using Samba +category: networking +version: "4.20.1" +port: 9445 +description: >- + 📂 Simplify your file sharing with Samba! + + Samba is a powerful tool that makes it easy to share files across different devices on your network. It allows your Umbrel device to seamlessly share files with Windows, macOS, Linux, and more. Whether you're sharing documents, media files, or backups, Samba makes it simple and secure. + + + 📄 Effortless File Access + + Access and manage the files on your Umbrel device from any computer on your network. Say good bye to the complicated SSH access! + + + 🖥️ Cross-Platform Compatibility + + Samba works with all major operating systems, including Windows, macOS, and Linux. Share your files without worrying about compatibility issues. + + + 🛡️ Secure and Reliable + + Samba has been providing secure and stable file sharing for over 30 years. Trust it to keep your files safe and accessible. +developer: Samba +website: https://www.samba.org/ +submitter: João Victor +permissions: + - STORAGE_DOWNLOADS +submission: https://github.com/getumbrel/umbrel-apps/pull/1161 +repo: https://github.com/dockur/samba +support: https://github.com/dockur/samba/issues +gallery: + - 1.jpg + - 2.jpg + - 3.jpg +releaseNotes: "" +dependencies: [] +path: "" +defaultUsername: "umbrel" +deterministicPassword: true