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

[Need support]: How to maintain SPRING_POSTGRES_PASSWORD in docker secret #94

Open
rsub6829 opened this issue Nov 29, 2024 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@rsub6829
Copy link

Describe the problem

below is my docker compose file.

`version: "3.9"

services:

healenium:
image: healenium/hlm-backend:3.4.6
container_name: healenium
restart: on-failure
ports:
- "7878:7878"
environment:
- SPRING_POSTGRES_DB=healenium
- SPRING_POSTGRES_SCHEMA=healenium
- SPRING_POSTGRES_USER=healeniumuser
- SPRING_POSTGRES_PASSWORD=/run/secrets/db_pwd
- SPRING_POSTGRES_DB_HOST= localhost
- KEY_SELECTOR_URL=false
- COLLECT_METRICS=true
- HLM_LOG_LEVEL=debug
volumes:
- ./screenshots/:/screenshots
- ./logs/:/logs
networks:
- healenium
secrets:
- db_pwd

selector-imitator:
image: healenium/hlm-selector-imitator:1.4
container_name: selector-imitator
restart: on-failure
ports:
- "8000:8000"
networks:
- healenium
secrets:
db_pwd:
file: db_pwd.txt
networks:
healenium:
name: healenium`

I created docker secret with password during runtime and mounted on "/run/secrets/" folder in docker container. I am able to see the file inside docker container with the password. However 'SPRING_POSTGRES_PASSWORD' is setup as "/run/secrets/db_pwd" instead of password. could you please help me to resolve this issue

Healenium Web version

3.5.4

Healenium Backend version

3.4.6

Selenium version

4.25.0

Platform

No response

Logs appeared during using Healenium

Exception during pool initialization. org.postgresql.util.PSQLException: FATAL: password authentication failed for user "healeniumuser

Additional context

No response

@rsub6829 rsub6829 added the help wanted Extra attention is needed label Nov 29, 2024
@rsub6829 rsub6829 changed the title [Need support]: How to maintain [Need support]: How to maintain SPRING_POSTGRES_PASSWORD in docker secret Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants