onaci / docker-plugin-seaweedfs

A Docker Volume plugin creating swarm-wide volumes - using Seaweedfs
Other
12 stars 3 forks source link

How to use custom configuration values? #17

Open pedroetb opened 1 year ago

pedroetb commented 1 year ago

Configuration values are customizable?

I mean values from variables like HOST: https://github.com/onaci/docker-plugin-seaweedfs/blob/seaweedfs-2.24/config.json#L19

Tried using environment variables but it didn't work. In this config file, HOST variable is defined like localhost:8888, but when running the plugin is quering at filer:8888 (and I need to change this hostname).

Creating a volume using swarm driver produces errors like this:

Error response from daemon: create test-vol: VolumeDriver.Create: Post "http://filer:8888/docker-seaweedfs-plugin/test-vol/json": dial tcp: lookup filer: Try again