Wireguard: Question regarding persistence of the peer configuration?

Dear all,

I found the nice wireguard container image, which works like a charm. One thing that is unclear to me is the persistence of the configuration file.

Upon setting PEERS to a name, a configuration for this peer is being created. I guess this is persistent, so even when the container restarts it is not recreated (if the /config directory is mounted into the container, of course). Right?

What happens once I add another peer, I assume the first peers configuration is being persisted aka keys etc. do no change? And only the configuration for another peer is being added?

Thanks for the clarification!

Kind Regards,
Johannes

correct

correct

Thanks for the fast reply and the confirmation!

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.