Unable to bind-mount conf.yml #1708
Unanswered
sburggsx
asked this question in
Help and Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been trying to get my conf.yml file to bind-mount. I am using ubuntu server and portainer to start. I am trying to bind-mount to /home/{user}/dashy/conf.yml where {user} is the correct name and owner of the directory and files. I have this in the compose text within the portainer stack.
Thinking there may be something off with my ubuntu install, I created another VM on a different server, installed docker and ran the compose on it's own, outside of portainer. Same dir structure etc. Same result. The location is not mounted and the conf.yml is not used.
I can give me details, but is there something that has to be done for the bind-mount to work correct? I am copying the compose file below:
services: dashy: # To build from source, replace 'image: lissy93/dashy' with 'build: .' # build: . image: lissy93/dashy:latest 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: - 8080:80 volumes: - /home/steve/dashy/conf.yml:/app/public/conf.yml - /home/steve/dashy/dashboard-icons/png:/app/public/item-icons/icons network_mode: "host" # Set any environmental variables environment: - NODE_ENV=production # Specify your user ID and group ID. You can find this by running
id -uand
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
Beta Was this translation helpful? Give feedback.
All reactions