{"id":291,"date":"2025-06-30T10:02:43","date_gmt":"2025-06-30T10:02:43","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2025\/06\/30\/11679241-how-to-use-the-airflow-vps-template-at-hostinger\/"},"modified":"2025-06-30T10:02:43","modified_gmt":"2025-06-30T10:02:43","slug":"11679241-how-to-use-the-airflow-vps-template-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/11679241-how-to-use-the-airflow-vps-template-at-hostinger\/","title":{"rendered":"How to Use the Airflow VPS Template at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">Apache Airflow is a powerful, open-source workflow orchestration platform designed to programmatically author, schedule, and monitor workflows. It supports coding in Python with extensive integration capabilities for databases, cloud services, and APIs. With the &ldquo;Ubuntu 24.04 with Airflow&rdquo; VPS template from Hostinger, Airflow comes pre-installed using Docker Compose, so you can start orchestrating workflows immediately.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_6031a27980\">Accessing Airflow<\/h2><p class=\"no-margin\">Once your VPS is deployed using this template, Airflow is ready to use out of the box. Open your web browser and navigate to:<\/p><p class=\"no-margin\">\n<\/p><pre><code>http:\/\/[your-vps-IP]:8080 <\/code><\/pre><p class=\"no-margin\">When accessing Airflow, you must log in using the username &ldquo;admin&rdquo; and the password set during installation. After logging in, you can access the Airflow web interface where you can view, trigger, and monitor your DAGs.<\/p><p class=\"no-margin\">Airflow Directory Structure The Airflow installation is located in <code>\/root\/airflow\/<\/code> with the following structure:<\/p><p class=\"no-margin\">\n<\/p><pre><code>\/root\/airflow\/<br>&#9500;&#9472;&#9472; docker-compose.yml    # Docker Compose configuration<br>&#9500;&#9472;&#9472; dags\/                 # Place your DAG files here<br>&#9500;&#9472;&#9472; logs\/                 # Airflow execution logs<br>&#9500;&#9472;&#9472; plugins\/              # Custom Airflow plugins<br>&#9492;&#9472;&#9472; config\/               # Airflow configuration files<\/code><\/pre><p class=\"no-margin\">\n<\/p><h2 id=\"h_46009ca219\">Basic Airflow Operations <\/h2><p class=\"no-margin\">Here are some essential tasks to get you started with Airflow:<\/p><p class=\"no-margin\">Managing DAGs<\/p><ul>\n<li>\n<p class=\"no-margin\"><b>Add DAGs<\/b>: Place your Python DAG files in <code>\/root\/airflow\/dags\/<\/code><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>View DAGs<\/b>: The main dashboard shows all your DAGs with their current status<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Trigger DAG<\/b>: Click the &ldquo;play&rdquo; button next to any DAG to trigger it manually<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Pause\/Unpause<\/b>: Use the toggle switch to pause or unpause scheduled DAG runs<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>View Logs<\/b>: Click on a task instance to view detailed execution logs<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Graph View<\/b>: Click on a DAG name to see its task dependencies and execution flow<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">Working with Docker Compose Access your VPS via SSH to manage Airflow using Docker Compose:<\/p><p class=\"no-margin\">\n<\/p><pre><code># Change to the Airflow directory<br>cd \/root\/airflow\/<br><br># View running containers<br>docker compose ps<br><br># View Airflow logs<br>docker compose logs -f<br><br># Stop Airflow<br>docker compose down<br><br># Start Airflow<br>docker compose up -d<br><br># Restart Airflow<br>docker compose restart<br><br># Execute Airflow CLI commands<br>docker compose run airflow-worker airflow version<br>docker compose run airflow-worker airflow dags list<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Updating Airflow It&rsquo;s important to keep your Airflow version up to date. This ensures you get the latest features and fixes. Follow these steps in SSH to update Airflow:<\/p><p class=\"no-margin\">\n<\/p><pre><code># Change directory<br>cd \/root\/airflow\/<br><br># Pull latest version<br>docker compose pull<br><br># Stop and remove older version<br>docker compose down<br><br># Start the container<br>docker compose up -d<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Hostinger&rsquo;s &ldquo;Ubuntu 24.04 with Airflow&rdquo; VPS templates let you quickly set up and manage workflow orchestration solutions for data pipelines and automation tasks.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Official website: <a href=\"https:\/\/airflow.apache.org\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">https:\/\/airflow.apache.org\/<\/a><\/p><p class=\"no-margin\">Official documentation: <a href=\"https:\/\/airflow.apache.org\/docs\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">https:\/\/airflow.apache.org\/docs\/<\/a><\/p><p class=\"no-margin\">\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Getting started with Airflow VPS template on Hostinger<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[206],"tags":[],"class_list":["post-291","post","type-post","status-publish","format-standard","hentry","category-vps-os-and-templates"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/11679241-how-to-use-the-airflow-vps-template-at-hostinger\/","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=291"}],"version-history":[{"count":0,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/291\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}