How can I add a config.yml file on a Docker installation?

Hi,

I have Vikunja setup in docker containers using compose. I now need to edit the config.yml to add OpenID with Authentik. But I can’t find how to access this config.yml file.

Where is it stored ? How can I have it somewhere and make it persistent ? I read Config options | Vikunja but Vikunja doesn’t seem to be catching the config.yml.

Does someone have an idea ?

Any answer is welcome. Have a great day

You’ll need to save the config file on the host and mount the config into the api container at /etc/vikunja/config.yml.

1 Like

It works perfectly now, thanks ! I don’t know why the other locations like .config didn’t work but this one do.

How can i do it?
I tried with

version: ‘3’

services:
vikunja:
image: vikunja/vikunja
environment:
VIKUNJA_SERVICE_PUBLICURL: http://192.168.62.47
VIKUNJA_DATABASE_HOST: db
VIKUNJA_DATABASE_PASSWORD: changeme
VIKUNJA_DATABASE_TYPE: mysql
VIKUNJA_DATABASE_USER: vikunja
VIKUNJA_DATABASE_DATABASE: vikunja
VIKUNJA_SERVICE_JWTSECRET: $4dm1nCOM-1
VIKUNJA_SERVICE_ENABLEREGISTRATION: true
VIKUNJA_SERVICE_TIMEZONE: America/Bogota
VIKUNJA_SERVICE_ENABLEUSERDELETION: false
ports:
- 80:3456
volumes:
- ./files:/app/vikunja/files
- ./files/config.yml:/etc/vikunja/config.yml

where i can find a template for a config.yml?

A sample config file is here: https://dl.vikunja.io/vikunja/unstable/config.yml.sample