Freedom is a synthetic enterprise, not a natural gift

Glory to the ghosts of us

  • 105 Posts
  • 618 Comments
Joined 5 years ago
cake
Cake day: November 25th, 2020

help-circle



  • ghost_laptop@lemmy.mlOPMtoMemes@lemmy.mlrule
    link
    fedilink
    arrow-up
    9
    ·
    5 days ago

    I am a leftist. (One of those spooky anarchists you hear horror stories about.) And the US is very often wrong.

    But not always wrong, and not always the correct people to blame. Most of the time? Yes. Always? No.










  • this is my compose file for monbooru, ive added some comments to show you what each thing does, if you want to change the port simply change the the first 8080. all of these value:value mean that the first value is your machine, and the second one inside the container. that’s it, create a folder named monbooru, create a file named docker-compose.yml, add the thing i gave you below and save it. with your terminal cd into the directory where the compose file lives and do docker compose up -d and it will download the image and it’ll be runnin. believe me, i used to prefer to not use docker because i thought, ohh i have to learn to use docker, but honestly i wish i knew it was this simple long before so i wouldnt have done so many installs of some apps where i’ll lose my data

    services:
      monbooru:
        container_name: monbooru
        image: ghcr.io/leqwin/monbooru:latest
        ports:
          - "127.0.0.1:8080:8080"
        user: "1000:1000"
        security_opt:
          - no-new-privileges:true
          - label:disable
        cap_drop:
          - ALL
        volumes:
          - /PATH/TO/YOUR/GALLERY:/gallery
          - ./config:/config #this one
          - ./data:/data #and this one make the app data live next to the compose file, so that you can move the folder and the data stays there
          - ./models:/models #use this if you add autotaggers, otherwise delete it, i'd try it without them first
        environment:
          - MONBOORU_SERVER_BIND_ADDRESS=0.0.0.0:8080
        healthcheck:
          test: ["CMD-SHELL", "curl --fail --silent --max-time 5 http://localhost:8080/health || exit 1"]
          interval: 30s
          retries: 3
          start_period: 10s
          timeout: 5s
        restart: unless-stopped
    

  • well, i dont think it’s the same. docker offers an easier way to install and store this kinds of apps. for example i installed the arr stack which takes a bit of time configuring it, ive done it before but not with docker and i lost my data on reinstall, i know you can keep it but its not the same. docker stores all the dependencies there. you just docker compose up on a new system and you got the same app.

    regarding flatpak, also another issue. flatpak is distro agnostic, it’s not about being the shiny hype thing, but offering a solution to the linux ecosystem where devs needed to provide different package manager options. could there be another thing? yeah, but that could happen with apt too theoretically.