Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Wgrest and Wireguard on seperate docker containers #37

Open
di-rect opened this issue Dec 12, 2024 · 1 comment
Open

Run Wgrest and Wireguard on seperate docker containers #37

di-rect opened this issue Dec 12, 2024 · 1 comment

Comments

@di-rect
Copy link

di-rect commented Dec 12, 2024

Would it be possible to run both services within their own Docker container but keep IPC working between both ?

@suquant
Copy link
Owner

suquant commented Dec 13, 2024

Hi,

Yes, it’s possible! Just share a directory like /var/run/wireguard/ between the containers using a bind mount. Both can then access the same socket file for IPC. Here’s an example for Docker Compose:

volumes:
  - /host/path/shared:/var/run/wireguard/

Make sure both containers have permission to access the shared files. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants