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

Running SSHPortal in a container how to connect to outside SQL DB #354

Open
jasamvalter opened this issue May 4, 2022 · 1 comment
Open

Comments

@jasamvalter
Copy link

Actual Result / Problem

It seems that I am unable to find a way to connect/start my sshportal docker container which would run SSHPortal connecting to outside SQL database?

Where to execute this part? : sshportal --db-conn=user:pass@host/dbname?parseTime=true --db-driver=mysql

Expected Result / Suggestion

Docker container which runs SSHPortal connecting to outside SQL database

@GaetanF
Copy link

GaetanF commented Aug 23, 2022

Hello,

You can use the environment variable of docker :
-e SSHPORTAL_DB_DRIVER=mysql -e SSHPORTAL_DATABASE_URL=user:pass@host/dbname?parseTime=true

Regards,

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