-
-
Notifications
You must be signed in to change notification settings - Fork 139
02 Setup Docker
Adjust the NOTES_PATH=Demo in the docker-compose.yml to you vault folder name.
run docker composer
docker-compose up -d- also follow the required Obsidian Settings
- and Graph Setup
docker-compose will use the latest prebuild perlite image from docker hub (includes the php-fpm engine) and build your own nginx images called perlite_web.
If you have any problems to get the latest correct docker image (for example you already pulled the latest tag sometime ago) run this command to delete any older image:
docker container rm perlite; docker image rm sec77/perlite:latestYou can adjust your nginx and php settings via the Dockerfiles in the folder web. If you want to build your own perlite image you can also find a docker file in the perlite folder, dont forget to change the docker-compose files to build a own perlite image
perlite:
build:
context: ./perlitethere is also a development environment available, this will map the perlite/ folder to the container, so you can edit the php files without rebuilding the containers
docker-compose --file docker-compose-dev.yml up -dfor example use this to mount you local folder /home/user/myNotes to your container and set the root folder
environment:
- NOTES_PATH=Notes
- HIDE_FOLDERS=docs,private,trash
volumes:
- /home/user/myNotes:/var/www/perlite/Notes:roif you don't specify any NOTES_PATH, Perlite will take /var/www/perlite/Demo as starting point.