-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Comments
Note that the volume syntax has changed. Look closely at the compose example. For my compose file the conversion was simple: `
` |
@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? |
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.. 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 |
@HollisTech Looks amazing for it's size 👏 |
@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: |
@rpgdev No you still have the old path, it's not /app/public/conf.yml anymore, it's/app/user-data/conf.yml now. |
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. |
@HollisTech May I ask what Database you are talking about? |
it worked now thanks. |
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
The text was updated successfully, but these errors were encountered: