شعار Docker Compose

Docker Compose

المجتمع
gordonmurray
docker-compose

Write, review, and modernize Docker Compose files against the current Compose Specification and the docker compose CLI. Use for authoring compose.yaml or docker-compose.yml, service dependency and healthcheck ordering, profiles, networks, volumes, secrets and configs, build contexts, migrating off V1 and the obsolete version key, or containers that fail to start, restart-loop, report unhealthy, or lose data between runs.

نظرة عامة

الناشرgordonmurray
المستودعdata-engineering-skills
اسم المهارةdocker-compose
النجوم
47
التفريعات
4
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها gordonmurray على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Docker Compose في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/gordonmurray/data-engineering-skills/tree/main/docker-compose
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/gordonmurray/data-engineering-skills.git /tmp/data-engineering-skills
mkdir -p .claude/skills
cp -r /tmp/data-engineering-skills/docker-compose .claude/skills/docker-compose
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Docker Compose في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Docker Compose تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Docker Compose بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Docker Compose Expert

Scope

Writing, reviewing, and modernizing Compose files using the current Compose Specification and the docker compose CLI, plus local multi-container workflows.

Not a Kubernetes or Swarm skill. When a user needs production orchestration, say so rather than stretching Compose to fit.

Current Facts

Release guidance checked on 2026-11-03. Recheck the linked sources before selecting versions for a new deployment; preserve existing project pins.

  • Current CLI release: Compose v5.7.0, published November 2, 2026. Existing installations may still run v2; inspect the binary before using newer features. CLI major versions are separate from obsolete Compose file-format versions.
  • The top-level version property is obsolete. Compose keeps it only for backward compatibility and warns when it is used.
  • Compose validates against the most recent schema regardless of version.
  • Use docker compose, not the old standalone docker-compose command, unless supporting a pinned legacy environment. V1 reached end of life in June 2023.
  • Default file names are compose.yaml (preferred) and compose.yml; docker-compose.yaml and docker-compose.yml remain supported. Compose prefers compose.yaml when both exist.
  • Common top-level keys include name, include, services, models, networks, volumes, secrets, and configs; validate newer keys against the installed CLI.
  • Recent additions gated on a CLI version: service-level pre_start for native init containers needs v5.3.0 (July 2026); build.no_cache_filter and docker compose start --wait need v5.0.0. None of these are available on Compose v2.
  • Jobs: v5.6 introduced partial support for manually triggered jobs. Do not assume scheduled-job support from the existence of the jobs model; check the target CLI and Engine capabilities.
  • restart accepts no, always, on-failure[:max-retries], and unless-stopped, with no version gate on any of them. The on-failure retry limit is long-standing; its spec wording was clarified in February 2026, which is not the same as being new.
  • Compose v5.0.0 removed the internal BuildKit builder and delegates builds to Docker Bake, the same path as docker build.
  • postgres:18-alpine and redis:8-alpine remain available example tags. These floating tags are not production pins or permission to upgrade existing database storage.

Inspect First

Establish before recommending or changing anything:

  1. Read the existing Compose file in full before editing. Preserve service names, networks, and volumes the user already depends on.
  2. Read the CLI version from docker compose version, and confirm it is not the standalone V1 binary. The version gates which keys are available: pre_start needs v5.3.0 or newer.
  3. Identify which services hold persistent state and which ports are currently published to the host.
  4. For startup failures, read docker compose ps and the actual container logs before changing configuration. Most restart loops are an application error, not a Compose error.

Authoring Rules

  • Start with services: and no version: field.
  • Add only the networks, volumes, secrets, configs, profiles, and build settings the workflow actually needs.
  • Use healthchecks plus long-form depends_on with condition: service_healthy when startup order matters. Plain depends_on waits for the container to start, not for the service to be ready.
  • Bind sensitive ports to 127.0.0.1 unless external access is required.
  • Keep internal databases on a backend network with no host port published.
  • Check the CLI version before using a recently added key. A v5-only key may be rejected or ignored by older tooling; successful YAML parsing alone does not prove the requested behavior is supported.
  • For migrations, permission fixes, and other init work on Compose v5.3.0 or newer, use service-level pre_start. Each step runs in an ephemeral container before the service starts, in declared order, and a non-zero exit fails the service and its dependents. This differs from post_start and pre_stop, which run inside the running service container.
  • On Compose v2, pre_start does not exist. Use a one-shot init service plus depends_on: {init: {condition: service_completed_successfully}} instead.
  • Use profiles for optional services such as observability, admin tools, or one-off jobs.
  • Use postgres:18-alpine and redis:8-alpine for current examples unless project requirements say otherwise.

Review Checklist

  • No top-level version:.
  • services: is plural and at the root.
  • Service names are stable and lowercase.
  • Images are pinned for production; avoid latest except in disposable examples.
  • Secrets are not embedded in YAML; use env vars, .env, secret files, or platform secrets.
  • Persistent database state uses named volumes.
  • Development bind mounts are explicit and use :ro when possible.
  • Healthchecks use commands available inside the image.
  • Resource limits are explicit where runaway memory/CPU use is risky.

Safety

  • docker compose down -v deletes named volumes and everything in them. Never offer it as a generic reset without stating that database contents will be destroyed, and confirm first.
  • A bare 5432:5432 publishes the database on every host interface. Use 127.0.0.1:5432:5432 unless remote access is genuinely required.
  • Keep secrets out of committed YAML and never echo secret values into output or logs.
  • Renaming a named volume silently orphans the old data rather than migrating it. Confirm before changing volume definitions on a running stack.

Verify

  • Run docker compose config to confirm the file parses and to inspect the rendered result, including variable interpolation.
  • Bring the stack up and confirm docker compose ps reports the expected services as healthy, not merely running.
  • Confirm each healthcheck command exists inside its image. A healthcheck calling curl in an image without curl reports unhealthy forever.
  • For stateful services, confirm data survives docker compose down followed by docker compose up.
  • Report which services you started, their health status, and anything you could not test.

Update Checklist

  • Recheck Docker Compose docs for newly added keys before recommending them, for example develop, pre_start, or the service-level networks.<name>.interface_name.
  • Recheck upstream image tags before refreshing examples.

Sources

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Docker Compose؟

Write, review, and modernize Docker Compose files against the current Compose Specification and the docker compose CLI. Use for authoring compose.yaml or docker-compose.yml, service dependency and healthcheck ordering, profiles, networks, volumes, secrets and configs, build contexts, migrating off V1 and the obsolete version key, or containers that fail to start, restart-loop, report unhealthy, or lose data between runs.

لماذا تستخدم Docker Compose على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Docker Compose عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Docker Compose في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/gordonmurray/data-engineering-skills/tree/main/docker-compose. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Docker Compose؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Docker Compose؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Docker Compose معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Docker Compose مجانية؟

نعم. نشرها gordonmurray على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇