Best of DockerJuly 2024

  1. 1
    Article
    Avatar of hnHacker News·2y

    Install Docmost - Open Source Notion Clone

    DocMost is an open-source alternative to Notion, aimed at providing a self-hosted knowledge base tool. The guide walks through setting up DocMost on a server using Docker and Traefik for SSL certificate management. It covers getting a root server, setting up DNS, installing DocMost, configuring Docker Compose, and details essential steps and troubleshooting tips. The setup is basic and intended for testing; for production, additional security steps are recommended.

  2. 2
    Article
    Avatar of devtoDEV·2y

    Advanced Dockerfile Directives

    Advanced Dockerfile directives enable the creation of sophisticated Docker images. Key directives covered include ENV for setting environment variables, ARG for build-time variables, WORKDIR to set the working directory, COPY and ADD for file inclusion, USER for setting default user, VOLUME for persistent storage, EXPOSE for port declaration, HEALTHCHECK for container health monitoring, and ONBUILD for deferred instructions in parent images. Examples demonstrating each directive are provided to showcase their usage and benefits.

  3. 3
    Article
    Avatar of baeldungBaeldung·2y

    Apache Kafka Tutorial Series

    This tutorial series covers essential topics about Apache Kafka, including its basics, how to integrate it with Spring Boot, configuring Kafka SSL, and setting up Kafka using Docker. It also explores Kafka consumer groups, retry mechanisms, and message ordering strategies, providing practical guidance for both newcomers and experienced developers.

  4. 4
    Article
    Avatar of communityCommunity Picks·2y

    Don't query your PostgreSQL db anymore, prefer PostgREST

    The post discusses the benefits of using PostgREST to replace traditional SQL queries in PostgreSQL databases. It outlines the process of setting up PostgREST, a standalone web server that converts PostgreSQL databases into RESTful APIs, simplifying database interactions. The author shares their experience migrating from MySQL to PostgreSQL and how PostgREST helped streamline their PHP code by eliminating direct SQL queries. The post includes a tutorial on setting up and using PostgREST with Docker, illustrating various query examples and security considerations.

  5. 5
    Article
    Avatar of notedNoted·2y

    CasaOS - Self Hosting Made Easy for Beginners

    CasaOS is an open-source operating system designed to simplify self-hosting for beginners. It enables users to manage apps, media, and smart home devices from one place. CasaOS leverages Docker for easy app installation and supports multiple hardware. Users can install pre-selected apps effortlessly and manage their digital homes without technical expertise. The platform aims to foster a connected and efficient home environment through simplicity and community-driven development.

  6. 6
    Article
    Avatar of notedNoted·2y

    Dozzle - Self-Hosted Docker Container Log Monitoring

    Dozzle is a self-hosted tool for real-time monitoring and troubleshooting of Docker container logs. It allows you to view live log outputs, supports Docker Swarm for multiple node monitoring, and doesn't require a database or extra configuration. Features include fuzzy search, regex search, split-screen log viewing, memory and CPU usage stats, and multi-user authentication. It's lightweight, intuitive, and easily installed via Docker Compose.

  7. 7
    Article
    Avatar of communityCommunity Picks·2y

    DevOps Monitoring and Automation Tool using Jenkins, Prometheus, Grafana and Docker

    A comprehensive guide on setting up a DevOps monitoring and automation tool using Jenkins, Prometheus, Grafana, and Docker. It covers the installation and configuration steps for each tool, including the setup of Jenkins pipelines for continuous integration and deployment, the use of Prometheus for metrics collection, and Grafana for visualization. The tutorial also provides Docker commands and scripts for a seamless setup.

  8. 8
    Article
    Avatar of communityCommunity Picks·2y

    New Dockerfile capabilities in v1.7.0

    The new Dockerfile v1.7.0 release introduces enhanced capabilities for BuildKit, Docker Buildx CLI, and Dockerfile frontend. New variable expansions allow for more flexible scripting, such as prefix and suffix removal. The `COPY --parents` flag replicates source directory structures, and `--exclude` filters provide finer control over copied files. These features aim to streamline multi-stage and multi-platform builds, making Dockerfile more powerful and versatile.

  9. 9
    Article
    Avatar of notedNoted·2y

    Docmost - Self -Hosted Collaborative Wiki and Documentation Portal

    Docmost is an open-source, self-hosted wiki and documentation tool designed for collaborative use. It offers features such as real-time collaboration, permissions management, spaces for organizing content, inline commenting, and a robust search system powered by Postgres full-text search. With easy deployment via Docker Compose, Docmost provides a secure and efficient way to manage and share documentation. While powerful, some users may find certain features like constant edit mode and the absence of a copy-to-clipboard button on code blocks to be areas for improvement.

  10. 10
    Article
    Avatar of communityCommunity Picks·2y

    The ultimate Supabase self-hosting Guide

    This guide provides detailed instructions on self-hosting Supabase for production use. It covers setting up initial storage options beyond Amazon S3, using DigitalOcean credits, and securing your setup with Docker, nginx, and optional advanced authentication with Authelia. The guide ensures you maintain a secure production environment by avoiding common pitfalls and leveraging various cloud providers.

  11. 11
    Article
    Avatar of communityCommunity Picks·2y

    Jenkins Step-by-Step Guide on Crafting a Continuous Delivery and Deployment Pipeline

    CI/CD involves Continuous Integration for frequently merging code changes and Continuous Delivery for automating deployments. A build job in Jenkins automates tasks in the build process. Freestyle projects allow flexible job configurations without a pipeline structure. The guide walks through creating an agent in Jenkins and setting up a freestyle project to build a Docker image.

  12. 12
    Article
    Avatar of lnLaravel News·2y

    Build SSH Apps with PHP and Laravel Prompts

    The ssh-php project by Sam Carré offers a simple starting point for building Text-based User Interfaces (TUIs) over SSH using PHP. It integrates Laravel Prompts, Chewie, and Docker, facilitating both development and deployment. The project includes commands for running an SSH server in a Docker container and connecting to it. Comprehensive installation instructions and resources are available on GitHub.

  13. 13
    Article
    Avatar of hnHacker News·2y

    alexta69/metube: Self-hosted YouTube downloader (web UI for youtube-dl / yt-dlp)

    MeTube is a web GUI for youtube-dl, using the yt-dlp fork, that supports downloading videos from YouTube and other sites. The post explains that support for 32-bit ARM builds has been discontinued, and recommends migrating to a 64-bit OS. Detailed Docker and docker-compose instructions, environment variable configurations, and examples are provided. Additionally, the post covers browser extensions and bookmarklets for easy video downloading, reverse proxy settings, and regular updates for yt-dlp through a nightly build system.

  14. 14
    Article
    Avatar of dockerDocker·2y

    How to Create Dockerfiles with GenAI

    The post explores the use of generative AI (GenAI) for generating Dockerfiles, highlighting how AI tools like ChatGPT can analyze projects and create Dockerfiles with improved best practices. By providing specific functions and prompts, the AI can automate Dockerfile creation, employing advanced techniques like multi-stage builds and cache mounts, aimed at enhancing efficiency and adaptability. The content emphasizes practical examples and ongoing evaluation of AI's role in developer workflows.

  15. 15
    Article
    Avatar of dockerDocker·2y

    Docker Best Practices: Choosing Between RUN, CMD, and ENTRYPOINT

    Docker offers multiple methods like RUN, CMD, and ENTRYPOINT to handle image building and container execution, each serving distinct purposes. RUN is utilized during the image build to execute commands, creating new layers. CMD sets default commands for container startup, while ENTRYPOINT specifies the default executable, making the container behave like an executable application. Understanding when and how to use these commands, along with the choice between shell and exec forms, is critical for optimizing Docker container behavior, signal handling, and overall efficiency.

  16. 16
    Article
    Avatar of communityCommunity Picks·2y

    Build a RAG chatbot with Astro, Postgres, and LlamaIndex

    A comprehensive guide to building a RAG chatbot using Astro, Postgres, and LlamaIndex. It covers generating OpenAI API tokens, creating and deploying an Astro app, setting up a serverless Postgres database, and configuring CI/CD with GitHub Actions. Key steps include Dockerizing the app, setting up React for the UI, adding Tailwind CSS, and deploying on Amazon ECS.

  17. 17
    Video
    Avatar of TechWithTimTech With Tim·2y

    Docker + GenAI | Deploying AI Apps

    The post explains how to use Docker for deploying AI applications, specifically focusing on language model applications. It highlights the Docker GenAI stack, which includes components like Neo4j, Lang Chain, and olama. The guide demonstrates how to containerize AI apps to ensure smooth deployment across different environments. Key features like Docker profiles and the watch feature are discussed to simplify development and deployment. Additionally, the post covers Docker Scout for identifying and fixing vulnerabilities in images and dependencies.

  18. 18
    Article
    Avatar of francescociull4Francesco's Squad·2y

    Today is the day

    A speaker prepares to present on a big stage about Rust and Docker, with plans for a live demo that has the potential to fail, showcasing a bold approach.

  19. 19
    Article
    Avatar of dockerDocker·2y

    Introducing Docker Build Checks: Optimize Dockerfiles with Best Practices

    Docker has released Docker Build checks in Docker Desktop 4.33 to help developers follow best practices in creating container images. These checks provide warnings for any violations detected during a build, helping to improve Dockerfile quality and performance. The checks can be run in real-time during editing, and are integrated into local builds, CI workflows, and Docker Build Cloud. Additionally, rules can be customized, skipped, and configured via the CLI or Docker Desktop. Upcoming features include more checks and IDE integration.

  20. 20
    Article
    Avatar of arcjetArcjet·2y

    Security advice for self-hosting Next.js in Docker

    Learn how to ensure the security of your self-hosted Next.js applications by following best practices for container image selection, secret management, and running as a non-root user. This guide emphasizes proactive security measures, including using a minimal runtime environment, avoiding the inclusion of a shell for production containers, and leveraging external secret managers like 1Password to keep sensitive information safe.

  21. 21
    Article
    Avatar of nickjanetakisNick Janetakis·2y

    Using Curl to Create a Telnet Connection

    Learn how to use curl to create a telnet connection, which can be useful for testing TCP services in environments where telnet or specific CLI tools are unavailable. The guide includes examples of successful connections and troubleshooting failed ones, along with integration scenarios in Kubernetes and Docker Compose setups. An accompanying demo video provides further insights and practical demonstrations.

  22. 22
    Article
    Avatar of communityCommunity Picks·2y

    Building Docker Images

    Learn how to build a Docker image from a Dockerfile, understand the difference between Dockerfile and Docker image, and the concept of image layers. The post also demonstrates the process of locally building and tagging Docker images using simple commands.

  23. 23
    Article
    Avatar of notedNoted·2y

    Jetlog - Self-Hosted Personal Flight Tracker and Viewer

    Jetlog is a self-hosted flight tracker and viewer that allows users to add, track, and analyze their flights. It features a world map view of visited airports and flight trajectories, along with detailed statistics. The installation process is streamlined using Docker, and the application runs on port 3000. Jetlog offers a customizable and user-friendly interface, making it a convenient tool for frequent flyers to manage and review their travel experiences.

  24. 24
    Article
    Avatar of communityCommunity Picks·2y

    A Broke B**ch’s Guide to Tech Start-up: Choosing Vector Database — Part 1 Self-Hosted

    Vector databases are crucial for GenAI applications, offering augmented knowledge bases for language models with support for fuzzy searching using text or media embeddings. The post evaluates various self-hosted vector databases like MongoDB, ChromaDB, Weaviate, Milvus, Neo4j, KDB.AI, PostgreSQL, and SQLite. Recommendations include using Docker for ease of setup and highlighting the benefits and limitations of each option. The guide emphasizes starting with self-hosted instances to control costs while prototyping and suggests evaluating multiple databases to find the optimal setup for your application.

  25. 25
    Article
    Avatar of spaceliftSpacelift·2y

    Docker Swarm vs. Kubernetes [Feature & Use Case Comparison]

    Docker Swarm and Kubernetes are popular tools for orchestrating container deployments across distributed environments, offering features like high availability, container scaling, and automated service discovery. While Docker Swarm is integrated with Docker and suitable for smaller applications due to its simplicity, Kubernetes provides a broader feature set designed for complex, large-scale deployments. Kubernetes supports advanced scheduling, auto-scaling, and robust security controls, but comes with a steeper learning curve. Each tool has its own strengths, making the choice dependent on specific use cases and requirements.