diff --git a/apps/librephotos/config.json b/apps/librephotos/config.json index b294d42c..6737ca50 100644 --- a/apps/librephotos/config.json +++ b/apps/librephotos/config.json @@ -1,7 +1,7 @@ { "$schema": "../schema.json", "name": "LibrePhotos", - "port": 8110, + "port": 8132, "available": true, "exposable": true, "id": "librephotos", diff --git a/apps/librephotos/data/cache/.gitkeep b/apps/librephotos/data/cache/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/librephotos/data/db/.gitkeep b/apps/librephotos/data/db/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/librephotos/data/logs/.gitkeep b/apps/librephotos/data/logs/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/librephotos/data/protected_media/.gitkeep b/apps/librephotos/data/protected_media/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/librephotos/data/proxy/nginx.conf b/apps/librephotos/data/proxy/nginx.conf index 773e5003..e324b37b 100644 --- a/apps/librephotos/data/proxy/nginx.conf +++ b/apps/librephotos/data/proxy/nginx.conf @@ -22,7 +22,7 @@ http { location ~ ^/(api|media)/ { proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host __backend_name__; + proxy_set_header Host librephotos-backend; include uwsgi_params; proxy_pass http://librephotos-backend:8001; } diff --git a/apps/librephotos/data/scan/.gitkeep b/apps/librephotos/data/scan/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/librephotos/docker-compose.yml b/apps/librephotos/docker-compose.yml index cf6f23cb..7814beb2 100644 --- a/apps/librephotos/docker-compose.yml +++ b/apps/librephotos/docker-compose.yml @@ -6,7 +6,7 @@ services: restart: unless-stopped volumes: - ${APP_DATA_DIR}/data/scan:/data - - ${ROOT_FOLDER_HOST}/media/data/images:/protected_media + - ${APP_DATA_DIR}/data/protected_media:/protected_media - ${APP_DATA_DIR}/data/proxy/nginx.conf:/etc/nginx/nginx.conf:ro ports: - ${APP_PORT}:80 @@ -17,19 +17,20 @@ services: - tipi_main_network librephotos-db: - image: postgres:13 + image: postgres:14 container_name: librephotos-db restart: unless-stopped environment: - - POSTGRES_USER=tipi - - POSTGRES_PASSWORD=${LIBREPHOTOS_DB_PASSWORD} - - POSTGRES_DB=librephotos + POSTGRES_PASSWORD: ${LIBREPHOTOS_DB_PASSWORD} + POSTGRES_USER: tipi + POSTGRES_DB: librephotos volumes: - ${APP_DATA_DIR}/data/db:/var/lib/postgresql/data command: postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c random_page_cost=1.0 #Checking health of Postgres db healthcheck: - test: psql -U tipi -d librephotos -c "SELECT 1;" + # test: psql -U tipi -d librephotos -c "SELECT 1;" + test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] interval: 5s timeout: 5s retries: 5 @@ -51,7 +52,7 @@ services: restart: unless-stopped volumes: - ${APP_DATA_DIR}/data/scan:/data - - ${ROOT_FOLDER_HOST}/media/data/images:/protected_media + - ${APP_DATA_DIR}/data/protected_media:/protected_media - ${APP_DATA_DIR}/data/logs:/logs - ${APP_DATA_DIR}/data/cache:/root/.cache environment: @@ -64,7 +65,7 @@ services: - DB_NAME=librephotos - DB_USER=tipi - DB_PASS=${LIBREPHOTOS_DB_PASSWORD} - - DB_HOST= + - DB_HOST=librephotos-db - DB_PORT=5432 - REDIS_HOST=librephotos-redis - REDIS_PORT=6379 diff --git a/apps/librephotos/metadata/description.md b/apps/librephotos/metadata/description.md index e69de29b..3ca6df28 100644 --- a/apps/librephotos/metadata/description.md +++ b/apps/librephotos/metadata/description.md @@ -0,0 +1,24 @@ +- The [demo is available here](https://demo2.librephotos.com/). User is ```demo```, password is ```demo1234```. +- You can watch development videos on [Niaz Faridani-Rad's channel](https://www.youtube.com/channel/UCZJ2pk2BPKxwbuCV9LWDR0w) +- You can join our [Discord](https://discord.gg/xwRvtSDGWb). + +![](https://github.com/LibrePhotos/librephotos/blob/dev/screenshots/mockups_main_fhd.png?raw=true) +Mockup designed by rawpixel.com / Freepik + +## Installation + +Step-by-step installation instructions are available in our [documentation](https://docs.librephotos.com/1/) + +## Features + + - Support for all types of photos including raw photos + - Support for videos + - Timeline view + - Scans pictures on the file system + - Multiuser support + - Generate albums based on events like "Thursday in Berlin" + - Face recognition / Face classification + - Reverse geocoding + - Object / Scene detection + - Semantic image search + - Search by metadata \ No newline at end of file