-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Synology NAS Set PUID and PGID as Variables #602
Comments
Can someone with synology submit a PR they've been able to verify that it works as expected? I can help making sure this does not break stuff on rest of the platforms. |
What about a native package for synology, this would propably support more models than a docker solution. |
What do you mean with PR? |
Since we do not have a Synology to test on, we can't debug and test these changes. So if someone has a fix, they can request to merge/pull that change into the master branch. |
@newkind maybe file an issue with Synology instead? It shouldn't be up to every container out there to fix the fuckups by synology imho. |
The issue is that the UI from Synology's Docker package doesn't support the
Your compose file might look something like this
When you are ready, run compose. You'll see the container will turn up in the UI as well
Disclaimer: I haven't actually tested this yet. Will probably try this week. Some refs https://github.com/dani-garcia/bitwarden_rs/wiki/Using-Docker-Compose |
What ended up working for me on Synology was this: # get UID and GID of the non-root user on host
sudo synouser --get bitwardenrs
sudo synogroup --get bitwardenrs version: '3.7'
services:
bitwardenrs:
image: bitwardenrs/server:latest
restart: always
user: 'UID:GID' # you have to use the IDs (see above), the names won't work as they won't exist inside the container
volumes:
- '/volume1/docker/bitwardenrs/data/:/data'
environment:
# ADMIN_TOKEN:
# WEBSOCKET_ENABLED: 'false' # I had to hack around with Synology's moustache templates to get websockets working behind reverse proxy, it's not possible with what Synology exposes through DSM (I'm happy to be proven overwise!). I don't recommend attempting this unless you know what you're doing.
LOG_FILE: /data/bitwarden.log
ROCKET_PORT: '8080' # since non-root user is used, rocket cannot run on port 80 (default)
ports:
- '8181:8080'
# - '3012:3012' # normally for websockets Docker didn't like re-using the pre-existing network synology sets up so you can let it create one automatically. I didn't need to configure anything special in the firewall for it to work contrary to my prev comment. |
I can confirm, this is working on a synology NAS.
Maybe this solution could be inserted into the wiki. Edit: Already in the Wiki: https://github.com/dani-garcia/bitwarden_rs/wiki/Hardening-Guide |
I am using portainer on my Synology NAS and don't see any option to set |
I use docker on a Synology DS920+, and I use PGID and PUID. ---
version: "2.4"
services:
vaultwarden:
image: vaultwarden/server:latest # https://github.com/dani-garcia/vaultwarden
# https://github.com/dani-garcia/vaultwarden/wiki
container_name: vaultwarden
networks:
- vaultwarden_network
environment:
# Utiliser la commande (en SSH) : id NOM_UTILISATEUR
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
... |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I'd like to kindly request a feature that would allow Synology NAS users to change the UID and GID as environment variables.
I know that there's a guide in WIKI on how to change the user to non-root but having this possiblity using environment variables would be awesome.
This is exactly the same feature request as it was made in the piHole : pi-hole/docker-pi-hole#328
Thank you!
The text was updated successfully, but these errors were encountered: