Skip to main content
use-apify.com

Docker: guides & tutorials

Docker for scraping: slim images, pinned browser deps, and /dev/shm tuning. Run Playwright or Puppeteer scrapers consistently on Apify or your own servers.

9 articles

View all tags

Docker makes scrapers reproducible: slim images, pinned browser dependencies, and tuned /dev/shm for headless Chrome. These guides cover containerizing Playwright and Puppeteer scrapers.

Containers run the same locally and in the cloud, which removes works-on-my-machine surprises. Apify actors are built on Docker under the hood. Below you will find Dockerfile patterns for reliable scraping.

Related topics

Self-hosted AI13 min read

The $20/Month AI Operations Stack: Self-Host Ollama + n8n + Coolify on a VPS

· 13 min read
Yassine El Haddad
Software Developer & Automation Specialist

Cloud API costs scale linearly with usage. Self-hosting Ollama + n8n + Coolify on a $20/month VPS removes per-token fees for local Ollama inference — you still pay for the VPS, bandwidth, and your time; throughput is limited by CPU/RAM. When workflows call Apify, email, or other SaaS APIs, data transits those providers — not only your server.

This guide covers the complete setup from bare VPS to production-ready AI pipeline, with official documentation links for every step.

TL;DR:

ComponentRoleOfficial docs
CoolifyInfrastructure manager (replaces Heroku/Vercel for self-hosting)coolify.io/docs
OllamaLocal LLM inference (Llama 3.1, Mistral, DeepSeek)ollama.com
n8nWorkflow orchestration (visual automation)docs.n8n.io
QdrantVector database for AI memory/RAG (Retrieval-Augmented Generation)qdrant.tech/documentation
PostgreSQLStructured data storagepostgresql.org

Prerequisites:

  • A VPS with 4+ CPU cores, 8+ GB RAM, 80+ GB SSD ($16–$25/month range). Minimum 8 GB RAM required for running Llama 3.1 8B comfortably alongside n8n.
  • A domain name pointed to the VPS IP
  • Basic terminal/SSH knowledge
  • 30–60 minutes of setup time
DevOps7 min read

Docker Compose Production Guide: Multi-Container Apps Done Right (2026)

· 7 min read
Yassine El Haddad
Software Developer & Automation Specialist

Development docker-compose.yml works for local runs — production needs secrets management, health checks, resource limits, named volumes, and zero-downtime deploys. This guide shows what sets production Docker Compose apart and provides an annotated template you can adapt. Run it on a Liquid Web VPS for a stable, performant host with SSD storage and managed monitoring.

Docker7 min read

Self-Host Immich on Docker: Your Private Google Photos Alternative (2026)

· 7 min read
Yassine El Haddad
Software Developer & Automation Specialist

Immich is an open-source photo and video backup platform that runs on your server. It offers automatic uploads from mobile apps, face recognition, CLIP-based semantic search, and timeline views — all without sending data to Google. Deploy it with Docker on a Liquid Web VPS for full control and privacy.

Docker7 min read

Traefik v3 Reverse Proxy: Complete Self-Hosting Setup Guide (2026)

· 7 min read
Yassine El Haddad
Software Developer & Automation Specialist

Traefik is a reverse proxy that discovers services from Docker labels and config files, issues Let's Encrypt certificates automatically, and handles HTTP/3. Version 3 refines middleware syntax and improves performance. This guide covers installation, your first service, middleware for auth and rate limiting, and dashboard security on a Liquid Web VPS.

DevOps2 min read

Best Udemy Docker and DevOps Courses for Scraping 2026

· 2 min read
Yassine El Haddad
Software Developer & Automation Specialist

The best Udemy Docker and DevOps courses for web scraping in 2026 are Docker Mastery (Bret Fisher), Kubernetes for the Absolute Beginners (Mumshad Mannambeth), and Docker Swarm Mastery. These teach containerization, Compose, and orchestration—skills needed to run scrapers at scale and deploy to platforms like Apify.

Browse Docker courses on Udemy

Guides on this site

Frequently asked questions

Frequently Asked Questions

Docker packages software and all its dependencies into a container that runs identically on any server. Most self-hosted AI tools (n8n, OpenWebUI, ComfyUI, Flowise) are distributed as Docker images because it eliminates version conflicts and makes installation a single command. You do not need to understand Docker deeply to use it — most AI tool setups just require running a docker compose up command from a config file.

Minimal Docker knowledge is needed for basic deployments — you mainly copy a docker-compose.yml file and run a single command. Debugging failed containers requires a bit more comfort with docker logs and docker ps. If you want these tools deployed without dealing with Docker at all, deployment services on this site handle installation, configuration, and a written runbook so you can maintain things without being a Docker expert.

Pull the latest image (docker pull) and restart the container (docker compose down && docker compose up -d). Most Docker-based AI tools store their data in named volumes, so updates do not overwrite your configurations or workflows. Always check the tool's changelog before updating — breaking changes occasionally require manual migration of config files. Keep a backup of your docker-compose.yml and any .env files before pulling major updates.

The main risks are security exposure (unauthenticated containers accessible from the internet) and data loss from server failures. Mitigate with: TLS-secured reverse proxy in front of every service, strong passwords or SSO on the web UI, fail2ban or UFW to block brute force, and regular automated backups of your Docker volumes. The deployment services on this site include hardening and a backup strategy as part of the handoff.