- Add CLAUDE.md with Gitea integration, development guidelines, and wiki interaction instructions - Add comprehensive README.md with service overview, quick start, and configuration details - Add service directories: gitea/, openai/, immich-app/, and setup scripts (install-cuda.sh, nvidia-docker-install.sh) - Update docker-compose.yml structure and immich configuration - Include restore example script for Immich database backups This repository now serves as the source of truth for Docker Compose configurations and deployment automation for Agap home server services (Immich, Gitea, Open WebUI). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
1.1 KiB
Bash
Executable File
16 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
docker compose down -v # CAUTION! Deletes all Immich data to start from scratch
|
|
## Uncomment the next line and replace DB_DATA_LOCATION with your Postgres path to permanently reset the Postgres database
|
|
# rm -rf DB_DATA_LOCATION # CAUTION! Deletes all Immich data to start from scratch
|
|
docker compose pull # Update to latest version of Immich (if desired)
|
|
docker compose create # Create Docker containers for Immich apps without running them
|
|
docker start immich_postgres # Start Postgres server
|
|
sleep 10 # Wait for Postgres server to start up
|
|
# Check the database user if you deviated from the default
|
|
# Replace <DB_USERNAME> with the database username - usually postgres unless you have changed it.
|
|
gunzip --stdout "/home/alvis/dump.sql.gz" \
|
|
| sed "s/SELECT pg_catalog.set_config('search_path', '', false);/SELECT pg_catalog.set_config('search_path', 'public, pg_catalog', true);/g" \
|
|
| docker exec -i immich_postgres psql --dbname=postgres --username=postgres # Restore Backup
|
|
docker compose up -d # Start remainder of Immich apps
|