Neo4j and Graph Databases with Docker
A free, 100% hands-on course: run Neo4j with Docker, master Cypher, import real data, connect from Python and analyze graphs with APOC and Graph Data Science in 20 labs.
Beginner · 20 hours · 20 lessons · Free course · Course language: Spanish and English
Learn graph databases with Neo4j from scratch, installing nothing but Docker. In 20 guided labs you start Neo4j with docker run and Docker Compose, keep your data in volumes, write Cypher queries to create, find and modify graphs, traverse paths, import CSV files, create constraints and indexes and measure performance with PROFILE. Then you connect from Python with the official driver, package an application in Docker Compose, use APOC and Graph Data Science to find the most influential nodes and the communities, and make backups. Every command is explained and every result is real: all the labs were run with Neo4j 2026.09.0. You finish with a product recommendation system. The lessons, quizzes and videos are in English; the labs' graphs and files keep their original Spanish names, and every lesson explains them.
What you will learn
- Run Neo4j with Docker and Docker Compose, with data that isn't lost
- Model a problem as a graph: nodes, relationships, labels and properties
- Write Cypher queries to create, find, modify and delete data
- Traverse paths and find the shortest route between two nodes
- Import CSV files and speed up queries with constraints and indexes
- Connect a Python application with the official Neo4j driver
- Analyze graphs with APOC and Graph Data Science, and make backups
Skills
Neo4j, Cypher, Docker, Docker Compose, Graph modeling, CSV import, Python driver, APOC, Graph Data Science
Program
Module 1: Graphs and Neo4j in Docker
What a graph is, your first Neo4j container, volumes and Docker Compose.
Project: A Neo4j environment with Docker Compose that keeps your data.
- What is a graph database: Nodes, relationships, labels and properties, and your first Neo4j in Docker.
- Your Neo4j container: ports, password and cypher-shell: docker run in the background, NEO4J_AUTH, logs, Neo4j Browser and cypher-shell.
- Persistence with volumes: Why data is lost and how to keep it with Docker volumes.
- Docker Compose: your course environment: A compose.yaml with volumes, plugins and a healthcheck that you'll use for the whole course.
Module 2: Basic Cypher
Create, query, modify and delete nodes and relationships, and traverse paths.
Project: A network of people, companies and cities you can query.
- Creating nodes and relationships with CREATE: Labels, properties, directed relationships and your first network.
- Querying with MATCH, WHERE and RETURN: Patterns, filters, ORDER BY, LIMIT, DISTINCT and aliases.
- MERGE, SET, REMOVE and DELETE: Create without duplicating, update properties and labels, and delete carefully.
- Patterns, paths and OPTIONAL MATCH: Variable-length paths, the shortest path and optional data.
Module 3: Intermediate Cypher
Aggregations, WITH, lists, UNWIND, CASE and subqueries.
Project: Reports on the network: who knows whom, by city and by company.
- Aggregations and WITH: count, sum, avg, collect and queries in stages with WITH.
- Lists, UNWIND, CASE and functions: Working with lists, turning them into rows, conditions, and text and date functions.
- Subqueries: EXISTS, COUNT and CALL: Questions inside questions: existence, counts and CALL subqueries.
Module 4: Real data and performance
Importing CSV, modeling, constraints, indexes, EXPLAIN and PROFILE.
Project: An online store with customers, products and purchases imported from CSV.
- Importing CSV with LOAD CSV: The /import folder, headers, data types and batched loads.
- Graph modeling, constraints and indexes: Deciding what's a node and what's a relationship, unique keys and indexes.
- EXPLAIN and PROFILE: fast queries: Reading a query's plan and measuring the effect of an index.
Module 5: Neo4j from Python
The official driver, parameters, transactions and an application in Docker Compose.
Project: A Python sales report that runs in its own container.
- The official Python driver: Connect, query with parameters and read results with execute_query.
- Transactions and an application in Docker Compose: Sessions, managed transactions and a Python app in its own container.
Module 6: Plugins, operations and final project
APOC, Graph Data Science, configuration, memory and backups.
Project: A product recommendation system with Cypher and Graph Data Science.
- APOC: the procedure library: Installing plugins with NEO4J_PLUGINS and using APOC procedures.
- Graph Data Science: PageRank and communities: Project a graph and find influential nodes and communities.
- Configuration, memory and backups: Environment variables, recommended memory, and dump and load of the database.
- Final project: product recommendations: A complete recommender: data, queries, Graph Data Science and Python.
Prerequisites
- A Windows, macOS or Linux computer with 8 GB of RAM (16 GB recommended)
- Docker Desktop installed (we show you how in the first lab)
- Basic use of the terminal. Knowing some Python helps for module 5: there is the free course Python from Scratch
Next courses
- Python from Scratch · Beginner · 20 hours · Free course
A free, 100% hands-on course: learn to program in Python with 20 labs. Every command explained, with real results and a final project. - Generative AI: Beginner Level · Beginner · 25 hours
Understand how transformers work inside, run them in a step-by-step Python lab and use them with good judgment in your daily work.