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

User of PostgreSQL database #41

Open
mu88 opened this issue May 5, 2024 · 0 comments
Open

User of PostgreSQL database #41

mu88 opened this issue May 5, 2024 · 0 comments

Comments

@mu88
Copy link

mu88 commented May 5, 2024

Dear @flosoft ,

Thank you for providing this super neat repository 🚀

I've a (probably very easy) question regarding the configuration: when running docker top joplinserver-app-1, I can see that the Joplin app itself runs under my user account:

UID                 PID                 PPID                C                   STIME               TTY                 TIME                CMD
myuser              1482907             1482876             0                   17:35               ?                   00:00:00            tini -- yarn start-prod
myuser              1482971             1482907             0                   17:35               ?                   00:00:01            node /opt/yarn-v1.22.19/bin/yarn.js start-prod
myuser              1483056             1482971             0                   17:35               ?                   00:00:00            /bin/sh -c pm2 kill && pm2 start --no-daemon --exp-backoff-restart-delay=1000 dist/app.js
myuser              1483103             1483056             0                   17:35               ?                   00:00:02            /usr/local/bin/node /home/joplin/packages/server/node_modules/.bin/pm2 start --no-daemon --exp-backoff-restart-delay=1000 dist/app.js
myuser              1483116             1483103             3                   17:35               ?                   00:00:21            node /home/joplin/packages/server/dist/app.js

But running docker top joplinserver-db-1 reveals that Joplin's database is running under a totally different user:

UID                 PID                 PPID                C                   STIME               TTY                 TIME                CMD
openhab             1482900             1482853             0                   17:35               ?                   00:00:00            postgres
openhab             1483046             1482900             0                   17:35               ?                   00:00:00            postgres: checkpointer
openhab             1483047             1482900             0                   17:35               ?                   00:00:00            postgres: background writer
openhab             1483048             1482900             0                   17:35               ?                   00:00:00            postgres: walwriter
openhab             1483049             1482900             0                   17:35               ?                   00:00:00            postgres: autovacuum launcher
openhab             1483050             1482900             0                   17:35               ?                   00:00:00            postgres: stats collector
openhab             1483051             1482900             0                   17:35               ?                   00:00:00            postgres: logical replication launcher
openhab             1483182             1482900             0                   17:35               ?                   00:00:00            postgres: joplinServer joplinServerDb 172.19.0.3(40768) idle
openhab             1483885             1482900             0                   17:38               ?                   00:00:00            postgres: joplinServer joplinServerDb 172.19.0.3(39222) idle

The user openhab exists on my Raspi and is used for my openHAB instance.

Do you have an idea why Joplin's database runs under a totally different account using your docker-compose.yml?

Thx and take care!

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

1 participant