Add immich

This commit is contained in:
2025-08-09 13:26:23 +00:00
parent 78e524d61c
commit 258c204163
9 changed files with 140 additions and 0 deletions

19
main.sh
View File

@@ -61,6 +61,7 @@ generate_env_files() {
cp --update=none ./caddy/.env.example ./caddy/.env
cp --update=none ./glance/.env.example ./glance/.env
cp --update=none ./ghost/.env.example ./ghost/.env
cp --update=none ./immich/.env.example ./immich/.env
cp --update=none ./caddy/Caddyfile.private.example ./caddy/Caddyfile.private
# cp --update=none ./slash/.env.example ./slash/.env
# cp --update=none ./grafana/.env.example ./grafana/.env
@@ -172,6 +173,15 @@ start_services() {
exit 1
fi
echo "Starting immich..."
$DOCKER_COMPOSE_COMMAND -f ./immich/docker-compose.yml up -d
if [ $? -eq 0 ]; then
print_success "Immich started successfully."
else
print_error "failed to start Immich!"
exit 1
fi
echo "Starting caddy..."
$DOCKER_COMPOSE_COMMAND -f ./caddy/docker-compose.yml up -d
if [ $? -eq 0 ]; then
@@ -282,6 +292,15 @@ stop_services() {
exit 1
fi
echo "Stopping immich..."
$DOCKER_COMPOSE_COMMAND -f ./immich/docker-compose.yml down
if [ $? -eq 0 ]; then
print_success "Immich stopped successfully."
else
print_error "failed to stop Immich!"
exit 1
fi
echo "Stopping caddy..."
$DOCKER_COMPOSE_COMMAND -f ./caddy/docker-compose.yml down
if [ $? -eq 0 ]; then