Setting Up Elasticsearch for Your Blog Search

If you’re looking to add powerful search capabilities to your blog, Elasticsearch is a fantastic option. After some research, I’ve put together a simple guide to help you set up Elasticsearch for your site using Docker and .NET. Let’s get started! 1. Create a Docker Compose File To run Elasticsearch in a Docker container, create a docker-compose.yml file with the following content: version: '3.7' services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:8.17.4 container_name: elasticsearch environment: - discovery.type=single-node - ES_JAVA_OPTS=-Xms512m -Xmx512m ulimits: memlock: soft: -1 hard: -1 volumes: - esdata:/usr/share/elasticsearch/data ports: - 9200:9200 networks: - elastic networks: elastic: driver: bridge volumes: esdata: driver: local 2. Configure System Settings Elasticsearch requires certain system settings to function properly. Run the following command to allow it to lock memory: ...

May 5, 2025 · 2 min · TC

Specialized Docker Containers: A Detailed Breakdown

Here’s a more detailed explanation of each of my Docker containers and what they specialize in: 1. Authelia Authelia provides identity verification through single sign-on (SSO) and two-factor authentication (2FA). It’s ideal for securing your self-hosted services, requiring users to verify their identity before accessing them. You can configure authentication methods like one-time passwords (OTP) or push notifications. 2. CrowdSec CrowdSec is a modern intrusion detection system that analyzes server logs and identifies suspicious behaviors. It acts as a collaborative threat defense mechanism, sharing community-wide information to prevent cyberattacks. It can block harmful IP addresses, making it a robust tool for proactive security. ...

March 15, 2025 · 3 min · Taner

How to Configure Traefik to Serve Your Hugo Site on Alpine Linux

How to Configure Traefik to Serve Your Hugo Site on Alpine Linux You can configure Traefik to serve your Hugo site. Here’s a step-by-step guide to set this up: 1. Install Docker and Docker Compose If Docker and Docker Compose are not already installed on your Alpine Linux VM, you can install them with the following commands: sudo apk add docker sudo apk add docker-compose 2. Create a Docker Compose File Create a docker-compose.yml file for your Hugo site. This file will define your Hugo service and the Traefik reverse proxy. Here is an example configuration: ...

February 23, 2025 · 2 min · TC

How to Proxy Your Hugo Site with Traefik on Alpine Linux

How to Proxy Your Hugo Site with Traefik on Alpine Linux To set up Traefik to proxy your Hugo site running on an Alpine VM with the IP address 192.168.0.155, you’ll need to configure Traefik rules. Here’s how to do it: Step 1: Install Docker and Docker Compose If not already installed, use the following commands to install Docker and Docker Compose: sudo apk add docker sudo apk add docker-compose Step 2: Create a Docker Compose File Create a docker-compose.yml file for Traefik on your VM where Traefik is running. Here is an example configuration: ...

February 23, 2025 · 2 min · TC