hey! when creating my fat-jar and then docker-images the way the documentation suggests, i'm also including the full application.conf and all resources in my fat-jar. Is there a way to build my server such that i can mount these config-files in a volume, making them accessible and changable without needing to rebuild the server?
d
Dico
01/24/2020, 6:05 PM
Yes.
l
Luke Rohde
01/24/2020, 6:05 PM
you can use a system prop to force the config library to use a specific file:
Copy code
-Dconfig.file=path/to/config-file
d
Dico
01/24/2020, 6:11 PM
You can use docker-compose, specifying the files to map in the
@Dico thanks, i know how to mount files into my container, but the problem was that i didn't know how to tell ktor where to look for it's config file. Luke's solution works, thanks!
d
Dico
01/24/2020, 6:31 PM
in that case your question seems very misleading.
l
Leon K
01/24/2020, 6:32 PM
is it? i'm asking how to "build my server" such that i don't "includ[e] the full application.conf [...] in my fat-jar" but instead "mount these config-files in a volume",... thats pretty clear, isn't it?
d
Dico
01/24/2020, 6:33 PM
okay I see, the default is for the conf to be packed into the jar... my bad