Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

A docker image for obsidian using the linuxserver.io base image.

License

Notifications You must be signed in to change notification settings

jack2game/docker-obsidian

 
 

Repository files navigation

docker-obsidian

A docker image for Obsidian.md using the linuxserver.io's KASM base image.

Usage

Here are some example snippets to help you get started creating a container.

docker-compose (amd64)

WEB_PORT=12345
rm -rfv $HOME/docker/obsidian/config
mkdir -p $HOME/docker/obsidian/vaults
mkdir -p $HOME/docker/obsidian/config

IMAGE_NAME=docker-obsidian:latest
sudo docker run -d --name obsidian \
  --restart=unless-stopped \
  -e PUID=1000 \
  -e PGID=1000 \
  -p 127.0.0.1:$WEB_PORT:8080 \
  --userns=host \
  -e TZ=Asia/Hong_Kong \
  -e SUBFOLDER="/obsidian/" \
  -v $HOME/docker/obsidian/config:/config \
  --mount type=bind,src=$HOME/docker/obsidian/vaults,dst=/vaults,bind-propagation=rshared \
  --mount type=tmpfs,destination=/tmp \
  ${IMAGE_NAME}

docker-compose (arm64)

WEB_PORT=12345
rm -rfv $HOME/docker/obsidian/config
mkdir -p $HOME/docker/obsidian/vaults
mkdir -p $HOME/docker/obsidian/config

IMAGE_NAME=docker-obsidian:latest
sudo docker run -d --name obsidian \
  --restart=unless-stopped \
  -e PUID=1000 \
  -e PGID=1000 \
  -p 127.0.0.1:$WEB_PORT:8080 \
  --userns=host \
  -e TZ=Asia/Hong_Kong \
  -e SUBFOLDER="/obsidian/" \
  -v $HOME/docker/obsidian/config:/config \
  --mount type=bind,src=$HOME/docker/obsidian/vaults,dst=/vaults,bind-propagation=rshared \
  --mount type=tmpfs,destination=/tmp \
  --security-opt seccomp=unconfined \
  ${IMAGE_NAME}

Development

User the test file to build the container using the following command.

# builds and starts the container
# container is accessible using http://localhost:8080
docker compose -f docker-compose-test.yml up

Credits

About

A docker image for obsidian using the linuxserver.io base image.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%