[go: up one dir, main page]

Please add a simple docker compose (server-only) example

Hi, I've been using watchtower to keep your docker image of magicmirror updated. However, recently it looks like the default compose architecture was made much more complex.

The way you've re-architected this works well when locally installing magic mirror using the bash script, but it makes distributed proxmox/portainer setups more complex. Ideally, I only need a single block of docker compose yml. Not a bash script with a bunch of imported modules that require me to ssh and manually copy files into one/many nodes in a cluster.

I think it would be a great idea provide a simple config that someone who just needs the server can use. Here's what I have right now. It works with all the latest updates but it is not obvious to me, given the documentation and configs in the run/ folder, that this would work. I just guessed that I had to remove the command: ... lines that were there previously and I was correct.

...

magicmirror:
    container_name: magicmirror
    image: karsten13/magicmirror:latest
    restart: unless-stopped
    user: root
    environment:
      - MM_INIT="no_init"
      - TZ="America/Chicago"
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /data/magicmirror/config:/opt/magic_mirror/config
      - /data/magicmirror/modules:/opt/magic_mirror/modules
      - /data/magicmirror/css/custom.css:/opt/magic_mirror/css/custom.css
      - /data/magicmirror/css/fonts:/opt/magic_mirror/css/fonts
    ports:
      - 8080:8080
...

Please consider adding something like this for people who just want to run a simple server setup.

Edited by hoggatt