Back to "Docker Komponera"

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

Docker Komponera

Tuesday, 30 July 2024

Docker Compose är ett verktyg för att definiera och köra multi-docker-applicationer.

Just nu använder jag Docker Compose för att köra några tjänster på min server.

  • Det mest tydliga - min blogg (den här )
  • Cloudflared - en tjänst som tunnelar trafik till min server
  • Observator - en tjänst som checkar efter uppdaterade enheter i mina behållare och återbryter dem om det behövs.

Här är docker-compose.yml file jag använder för att köra dessa tjänster:

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.