Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] I updated from 2.x to 3 and my config is gone, how do I get it back? #1680

Closed
4 tasks done
rpgdev opened this issue Aug 27, 2024 · 9 comments
Closed
4 tasks done
Assignees
Labels
🤷‍♂️ Question [ISSUE] Further information is requested

Comments

@rpgdev
Copy link

rpgdev commented Aug 27, 2024

Question

I just did a pull of the new version, at first I couldn't access it but figured that out from the now recommended docker-compose file. Unfortunately, after dashy started up my old config is gone, how can I get it back? I did not change the .conf mapping so I'm not using a directory I'm still mapped to the single .conf file.

Category

Setup and Deployment

Please tick the boxes

@rpgdev rpgdev added the 🤷‍♂️ Question [ISSUE] Further information is requested label Aug 27, 2024
@HollisTech
Copy link

Note that the volume syntax has changed. Look closely at the compose example. For my compose file the conversion was simple: `
volumes:

  •  - ./config:/app/public
    
  •  - ./config/conf.yml:/app/user-data/conf.yml
    

`

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Aug 28, 2024
@rpgdev
Copy link
Author

rpgdev commented Aug 28, 2024

@HollisTech where did you get that? This is the sample in the docs still pointing at the conf file:

---
version: "3.8"
services:
  dashy:
    # To build from source, replace 'image: lissy93/dashy' with 'build: .'
    # build: .
    image: lissy93/dashy
    container_name: Dashy
    # Pass in your config file below, by specifying the path on your host machine
    # volumes:
      # - /root/my-config.yml:/app/user-data/conf.yml
    ports:
      - 4000:8080
    # Set any environmental variables
    environment:
      - NODE_ENV=production
    # Specify your user ID and group ID. You can find this by running `id -u` and `id -g`
    #  - UID=1000
    #  - GID=1000
    # Specify restart policy
    restart: unless-stopped
    # Configure healthchecks
    healthcheck:
      test: ['CMD', 'node', '/app/services/healthcheck']
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 40s

How can I change the compose file so that it grabs my old config?

@CrazyWolf13
Copy link
Collaborator

@HollisTech

That's not fully correct, while it's now possible to use folder to folder mounts, which are most of the time a better experience it's not a must..

@rpgdev

Create a new folder and move the old config file into the folder and rename to conf.yml

mkdir /root/dashy
mv /root/my-config.yml /root/dashy/conf.yml
version: "3.8"
services:
  dashy:
    # To build from source, replace 'image: lissy93/dashy' with 'build: .'
    # build: .
    image: lissy93/dashy
    container_name: Dashy
    # Pass in your config file below, by specifying the path on your host machine
    # volumes:
      # - /root/dashy:/app/user-data
    ports:
      - 4000:8080
    # Set any environmental variables
    environment:
      - NODE_ENV=production
    # Specify your user ID and group ID. You can find this by running `id -u` and `id -g`
    #  - UID=1000
    #  - GID=1000
    # Specify restart policy
    restart: unless-stopped
    # Configure healthchecks
    healthcheck:
      test: ['CMD', 'node', '/app/services/healthcheck']
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 40s

@CrazyWolf13
Copy link
Collaborator

@HollisTech
A little bit off topic, but awesome top ps1 you wrote!

Looks amazing for it's size 👏

@rpgdev
Copy link
Author

rpgdev commented Aug 28, 2024

@CrazyWolf13 thanks but wouldn't that mean that the conf file I'm mapping in my own compose file should've been recognized?

---
services:
  dashy:
    image: lissy93/dashy
    container_name: dashy
    # Pass in your config file below, by specifying the path on your host machine
    volumes:
      - /mnt/docker/apps/dashy/config.yml:/app/public/conf.yml
      # - /mnt/docker/apps/dashy/icons:/app/user-data/item-icons/
    ports:
      - 4000:8080
    # Set any environmental variables
    environment:
      - NODE_ENV=production
    # Specify your user ID and group ID. You can find this by running `id -u` and `id -g`
      - UID=${PUID}
      - GID=${PGID}
    # Specify restart policy
    restart: unless-stopped
    # Configure healthchecks
    healthcheck:
      test: ['CMD', 'node', '/app/services/healthcheck']
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 40s
    networks:
      - network1
networks:
  network1:
    name: applications
    external: true
volumes:
  dashy_data:

@CrazyWolf13
Copy link
Collaborator

@rpgdev No you still have the old path, it's not /app/public/conf.yml anymore, it's/app/user-data/conf.yml now.

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Aug 29, 2024
@HollisTech
Copy link

@HollisTech A little bit off topic, but awesome top ps1 you wrote!

Looks amazing for it's size 👏
@CrazyWolf13 also totally off topic: thanks! Glad that somebody besides me is busy making windows usable.

Meanwhile I gave up on upgrading my database. I'm now painfully repopulating. Hopefully a better approach will be implemented before the next db migration.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Aug 29, 2024
@CrazyWolf13
Copy link
Collaborator

CrazyWolf13 commented Aug 29, 2024

@HollisTech
:D Yes always.

May I ask what Database you are talking about?
As far as I know Dashy does not contain any DB so also no DB migration.

@rpgdev
Copy link
Author

rpgdev commented Aug 29, 2024

@rpgdev No you still have the old path, it's not /app/public/conf.yml anymore, it's/app/user-data/conf.yml now.

it worked now thanks.

@rpgdev rpgdev closed this as completed Aug 29, 2024
@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷‍♂️ Question [ISSUE] Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants