Back to "डॉकर कम्पोज़"

This is a viewer only at the moment see the article on how this works.

To update the preview hit Ctrl-Alt-R (or ⌘-Alt-R on Mac) or Enter to refresh. The Save icon lets you save the markdown file to disk

This is a preview from the server running through my markdig pipeline

Docker

डॉकर कम्पोज़

Tuesday, 30 July 2024

डोकर कंपोज़, बहुविध कनटेनर डोकर अनुप्रयोगों को परिभाषित करने और चलाने के लिए एक उपकरण है।

इस समय मैं अपने सर्वर पर कुछ सेवाओं को चलाने के लिए Docker Compose का उपयोग करता हूँ

  • सबसे अधिक स्पष्ट - मेरी ब्लॉग
  • Cloudflared - एक सेवा है जो मेरे सर्वर में ट्रैफिक ट्यूनेल करता है
  • Watchtower - एक सेवा जो मेरे कन्टेनरों के अद्यतन की जाँच करता है और यदि आवश्यक हो तो उन्हें पुनः आरंभ करता है

यहाँ है docker-compose.yml फ़ाइल जो मैं इन सेवाओं को चलाने के लिए प्रयोग करता हूँ

services:
  mostlylucid:
    image: scottgal/mostlylucid:latest
    labels:
        - "com.centurylinklabs.watchtower.enable=true"
  cloudflared:
    image: cloudflare/cloudflared:latest
    command: tunnel --no-autoupdate run --token ${CLOUDFLARED_TOKEN}
    env_file:
      - .env
        
  watchtower:
    image: containrrr/watchtower
    container_name: watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - WATCHTOWER_CLEANUP=true
      - WATCHTOWER_LABEL_ENABLE=true
    command: --interval 300 # Check for updates every 300 seconds (5 minutes)
logo

© 2026 Scott Galloway — Unlicense — All content and source code on this site is free to use, copy, modify, and sell.