Comment on Should I move to Docker?

<- View Parent
felbane@lemmy.world ⁨9⁩ ⁨months⁩ ago

You don’t actually have to care about defining IP, cpu/ram reservations, etc. Your docker-compose file just defines the applications you want and a port mapping or two, and that’s it.

Example:

---
version: "2.1"
services:
  adguardhome-sync:
    image: lscr.io/linuxserver/adguardhome-sync:latest
    container_name: adguardhome-sync
    environment:
      - CONFIGFILE=/config/adguardhome-sync.yaml
    volumes:
      - /my/appdata/config:/config
    ports:
      - 8080:8080
    restart:
      - unless-stopped

That’s it, you run docker-compose up and the container starts, reads your config from your config folder, and exposes port 8080 to the rest of your network.

source
Sort:hotnewtop