1
Fork 0
Commit Graph

40 Commits

Author SHA1 Message Date
Kostiantyn f79d379e38
Urgent small fixes in the Dockerfile and Compose configs (#972)
* Freeze UID and GID for the `photoview` user inside the image; added alternative permission configs description to the Readme and Makefile (as a comment); switched the default tag in the compose from `2` to `master`, as this is the most common user misunderstanding according to the issues and Discord questions

* Revert back to the tag `2` with the assumption of the release happening soon

---------

Co-authored-by: Konstantin Koval
2024-06-23 14:28:02 +02:00
Kostiantyn 0193f7703d
Refactor docker deployment and user setup (#863)
* Fix #862, address #826 and maybe some other tickets: reimplemented the docker-compose user setup to enhance product setup experience and cover much more cases.

* make unique DB container name and use it in communication from Photoview

* Removed unnecessary healthcheck for photoview from docker-compose.example.yml, as it is defined in the Dockerfile; optimized Dockerfile combining all RUN directives of PROD stage into 1, which will produce single layer and save some space; added Dockerfile-dev, docker-compose-dev.yml, and new "dev" and "dev-down" directives into Makefile, which allows to setup development env in Docker. Instructions of how to use it are in comments at the beginning of Dockerfile-dev and docker-compose-dev.yml files

* Set RWX permissions to the application's working folder for any user, so that the image could be later run with non-root permissions and the app still be able to do needed operations in the FS

* Enhanced the "Getting started" section in the readme; added the `help` target and enhanced comments in the Makefile; commented out the `docker system prune -f` with the comment about the command and why it is there; added optional and commented by default `7zz` commands to the `backup` section of the Makefile

* Use `slim` base image for final photoview image

* Implement SQLite support according to the PR #851

* Removed deprecated `version` line from compose files; optimized dockerfile to build with less layers and run as non-root; mapped only Photoview related services to Watchtower by default instead of updating all running images on a host; added template for Postgres to the .env; reverted compose executable definition, so the new compose is called when present; added a tip about `lnav` to help

* fix a typo in the username; add support of PostgreSQL; split and optimize backup target in Makefile

* Fixed some typos and styling in Readme, excluded dev-environment setup from the PR; added a list of tips on how to secure Photoview in the Advanced setup section of Readme

* Implemented many security improvements, suggested by @Omar007, switched to the dedicated Darktable's repo to install the latest released version, as asked in #935; switched Watchtower to labels instead of profiles

* forgot the compose file

* move face models back to /app folder; comment out and document unnecessary vars in compose; fix a typo in a few vars

* Exclude Makefile in the root folder from git; documented multiple mounts case better; fixed incorrect SQLite DB path

* Fixed several bugs after complete testing cycle with all 3 DBs

* removed hardcoded port in Dockerfile

* Pin the major version for the `photoview` image for stability

* Revert back to the port 80 inside the container on product owner's request

* Provide a minimal compose file and update the readme accordingly

* Handle incorrect media file and folder permissions; set correct permissions for storage folder; fix healthcheck command for postgres

---------

Co-authored-by: Konstantin Koval <kkb@ukr.net>
2024-05-15 10:58:02 +02:00
Viktor Strate Kløvedal 8d78c58859
Update sponsors 2022-03-29 22:29:42 +02:00
feinedsquirrel adbfa2d8d0 add supported systems and systemd files 2021-09-10 22:39:39 -06:00
Viktor Strate Kløvedal bb613345ee
Merge pull request #505 from benpro/patch-2
Install npm dependencies
2021-09-07 16:45:44 +02:00
Benoît S 025d7a02ad Install npm dependencies
It is required to run `npm install`.
2021-09-07 20:46:04 +09:00
Benoît S 2bd656a420
Add go install
It is required to install go modules.
2021-09-05 12:59:42 +09:00
Guy Sheffer 552f7e7bec
OwnPhotos is now LibrePhotos
@hooram stopped development and it has been forked and mainted by a community of people
2021-09-02 13:54:32 +03:00
wswongat b54b9f3855
Update README.md
I found that I have to add these two ppas for libheif and libde265
sudo add-apt-repository ppa:strukturag/libheif
sudo add-apt-repository ppa:strukturag/libde265
2021-07-25 21:10:11 +08:00
Kuba Orlik 44f29075a0
Fix typo in README 2021-07-19 13:38:37 +02:00
viktorstrate 907f6631df
Add new sponsors to readme
Thank you @deexno and @FKrauss ❤️
2021-06-29 07:32:34 +02:00
Bishop Clark 19c8dd56b4
Update README.md
'Setup' and 'set up' are as different as noun and verb.
2021-06-05 22:59:54 -07:00
feinedsquirrel 52c2c76169 update Kagami/go-face target commit and new deps for it 2021-06-04 14:45:33 -06:00
viktorstrate 31aa63855b
Various changes to the readme
- Add @Revorge to sponsors section <3
- Update logo to use light text in dark mode
- Update API dependencies install guide
- Update introduction section
2021-05-11 23:53:15 +02:00
Viktor Strate Kløvedal 48605e60e0
Add @robin-moser to sponsors section in readme 2021-04-03 21:49:27 +02:00
viktorstrate a039941dda
Add libheif to Dockerfile 2021-03-27 22:30:26 +01:00
Viktor Strate Kløvedal bb03cb1631
Add sponsor section to readme (#270) 2021-03-26 11:20:41 +01:00
viktorstrate baa90f9955
Finish up face recognition 2021-02-22 19:46:47 +01:00
viktorstrate d13a99b678
Update readme screenshot 2021-02-13 17:43:16 +01:00
Viktor Strate Kløvedal 719dd633ce
Update Discord link with a new valid url 2021-01-06 23:35:58 +01:00
Viktor Strate Kløvedal 2016489a5f
Add link to Discord server in Readme 2021-01-03 20:46:46 +01:00
Viktor Strate Kløvedal f94d5c6755
Update "Main features" in readme 2020-08-11 23:27:17 +02:00
Viktor Strate Kløvedal 8d9cff8c3b
Update docker build status badge 2020-08-10 10:33:36 +02:00
viktorstrate 8c63242a0d Add logo to readme 2020-05-10 15:20:44 +02:00
viktorstrate de97d4b9bd General readme changes 2020-05-06 22:49:51 +02:00
viktorstrate 05ecaa1eee Cleanup readme + add badges 2020-05-06 22:27:10 +02:00
viktorstrate 2423a0394d Update docker compose example to use image
...instead of building the image.
Also update the docker instructions in the readme.
2020-04-30 15:57:08 +02:00
viktorstrate 5267d67714 Readme: Add updating steps + small changes 2020-04-17 13:37:49 +02:00
Slavik 3c5452e3cf
fix default port number
docker-compose has port 8000, but README had 8080. Setting README to 8000, so it match docker-compose
2020-04-13 21:47:22 -07:00
viktorstrate 09ddbae662 Add content section 2020-02-23 21:50:15 +01:00
viktorstrate b768084b23 Edit readme 2020-02-23 21:43:44 +01:00
viktorstrate bb8aff6019 Update docker-compose example 2020-02-21 22:49:19 +01:00
viktorstrate 5a0f03268d Update readme 2020-02-10 12:22:42 +01:00
viktorstrate 2ee33a88cf Disable service-worker, change demo link in readme 2020-01-19 23:05:44 +01:00
viktorstrate 694825a0d9 Add demo site to readme 2020-01-19 22:07:09 +01:00
viktorstrate e965187ed6 Add install guide to readme
Update dependencies
2019-08-30 16:27:24 +02:00
viktorstrate 2a58f0b5ab Secure graphql endpoint
add option to scan individual users photos
2019-08-23 22:14:12 +02:00
viktorstrate 5d1197500c Add notion link to readme 2019-08-12 16:16:08 +02:00
viktorstrate 68ccb7c18d Update readme + add screenshot 2019-08-12 16:08:44 +02:00
viktorstrate d3f9ed8116 Work towards authentication 2019-07-05 00:36:32 +02:00