Coder Social home page Coder Social logo

thekelvinliu / lsio-mod-gocryptfs Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 10 KB

add gocryptfs to a linuxserver docker container to mount encrypted directories and files

Home Page: https://hub.docker.com/r/thekelvinliu/lsio-mod-gocryptfs

Dockerfile 74.74% Shell 25.26%
docker gocryptfs docker-mods linuxserver linuxserver-mod

lsio-mod-gocryptfs's Introduction

lsio-mod-gocryptfs

add gocryptfs to a linuxserver docker container to mount encrypted directories and files

usage

this docker mod requires fuse, meaning docker containers must be privileged and have access to /dev/fuse on the host. for example with docker compose:

---
services:
  code:
    image: lscr.io/linuxserver/code-server:latest
    environment:
      DOCKER_MODS: "thekelvinliu/lsio-mod-gocryptfs:latest"
      PGID: 1000
      PUID: 1000
    privileged: true
    devices:
      - /dev/fuse:/dev/fuse
    volumes:
      - /path/to/cipher/directories:/encrypted
      - ./config/gocryptfs:/gocryptfs

configuration

the main config file for this docker mod is a csv file, which is expected at /gocryptfs/mounts.csv by default. this location can be changed using the GOCRYPTFS_MOUNTS_FILE environment variable. the csv enables multiple gocryptfs cipher directories to be mounted at once. each line in the file corresponds to a single gocryptfs mount and contains:

  • name: used in the service name that manages the mount
  • cipherdir: path to gocryptfs-encrypted cipher directory
  • mountpoint: path to gocryptfs mountpoint
  • passfile: path to a plaintext file containing the gocryptfs password

here's an example csv file that defines two mounts:

name,cipherdir,mountpoint,passfile
company-secrets,/encrypted/company-secrets,/decrypted/secrets,/gocryptfs/company-secrets-pass
personal-documents,/encrypted/personal-documents,/decrypted/docs,/gocryptfs/personal-documents-pass

once the gocryptfs services start, /decrypted/secrets will contain the unencrypted directories and files of the encrypted /encrypted/company-secrets. and similarly, /decrypted/docs will contain the unencrypted directories and files from /encrypted/personal-documents.

lsio-mod-gocryptfs's People

Contributors

thekelvinliu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.