डॉकर कम्पोज़ (हिन्दी (Hindi))

डॉकर कम्पोज़

Tuesday, 30 July 2024

//

Less than a minute

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

इस समय मैं अपने सर्वर पर कुछ सेवाओं को चलाने के लिए 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)
Finding related posts...
logo

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