Volume mount in GUI from yaml

Currently reading
Volume mount in GUI from yaml

16
0
NAS
Ds1018+
Operating system
  1. Windows
Mobile operating system
  1. Android
Last edited:
hi all - i'm trying to get this repo setup [https://github.com/magicdude4eva/docker-gunbot](https://github.com/magicdude4eva/docker-gunbot) on synology docker using the gui

however I am following the instructions and trying to setup the volumes per the repo instructions
1612646297215.png



I have mapped it as follows to the main folder:
1612646335288.png


I am getting these errors on launch of the container


I have also tried matching how it is in the yaml but it asks for files etc... which i don't have so i can't map files to files in the GUI

the permissions for the user are correct (same as other containers I have running that write/read fine).

Just not sure how apply yaml settings via the GUI in docker.

thank you - would really appreciate any advice.
 
I'd love if I could reference the yaml file in the UI when setting up the container so you don't have to map it all. Or at least work out how to map it per the yaml in the UI :(
 
You might want to add this to you christmas wish list to Synology... so far Synology's Docker UI does not allow what you are looking for.

When it commes to creating containers from docker-compose.yml files, there is no way arround the shell on Synology's Docker.
 
Thanks good to know. Any idea how to map it in the GUI based on the instructions? Surely im missing something obvious?
 
The transformation rules are quite simple:

Volumes and ports are declared as host side:container side.

Always use the values for the container side, the right hand side after the colon, as shown in the compose.yml. The host side, the left hand side before the colon, always needs to be adjusted to your host - though for ports, the suggested host port might just work fine if not used by another process already.

environments are declared as key=value.

Make sure to use the key exactly like it is written in the compose.yml. Adjust the value where it's necessary.

For instance TZ is typicaly the time zone. If you are not living in Vianna you probably want to change it. This will affect the time offset inside the container.

The PUID is used to perform a user id mapping inside the container, thus running the process as a user with that UID. The PGID is used to perform a group id mapping inside the container, thus runnign the proces as a user with that GID. This will affect read/write acccess on the volumes - make sure PUID and PGID are identical with the owner of the host side of the volume mount (the left hand side before the colon).

It will remain a tedous repetitve task to add all those volume.

What makes you afraid of docker-compose? Just put the file on your docker share, edit it with an editor like vscode, notepad++, sublime3 or atomic, safe the file. Connect to your nas via SSH, change into the folder where you stored the docker-compose.yml and fire up docker-compose up -d. Not using it like that will be way harder..
 
Thanks.

Mainly at I like having the container status in the GUI I guess
 
Ok I got it going ! And it does show in the UI
I had to manually copy over lots of files missing from the install but will ask the repo owner about that. Thanks for the help!
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Thanks... I tried something similar with rsync. The docker volume lived in...
Replies
7
Views
944
Word of warning: make sure the container you are using is not one of those that sets permissions and...
Replies
2
Views
495

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top