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

How to use https with partDB from Docker #1

Open
JMBeo opened this issue Nov 25, 2020 · 1 comment
Open

How to use https with partDB from Docker #1

JMBeo opened this issue Nov 25, 2020 · 1 comment

Comments

@JMBeo
Copy link

JMBeo commented Nov 25, 2020

Hello I`m running partDB with Docker using the stable composed file serverd here in the repo.
partDB is running fine but the container is not reachable by https requests.

to link to the https requests I insert in the port part:

"192.168.X.X:8899:80"
"192.168.X.X:8844:443"

requesting 192.168.X.X:8899 is good but only http

Did i need to generate a certifciate inside the container?
How to enable https for the container?
I didn´t find any dokumentaion handling https request.

Attached my composed file:
`version: '3'
services:
partdb:
image: jbtronics/part-db:stable
ports:
#Replace 8888 with the port, under which Part-DB should appear
- "192.168.X.X:8899:80"
- "192.168.X.X:8844:443"
depends_on:
- database
volumes:
- partdb-data:/var/www/html/data
restart: always

database:
image: mariadb:latest
volumes:
- partdb-database:/var/lib/mysql
environment:
# Set MYSQL_ROOT_PASSWORD to a unique password!!
MYSQL_ROOT_PASSWORD: xxxxxxxxx
MYSQL_DATABASE: partdb
restart: always`

@JMBeo
Copy link
Author

JMBeo commented Dec 1, 2020

Aktuelle versuche ich https bei dem container zum laufen zu bekommen.
Leider ist mir nicht ganz klar wie das hier ungestetzt werden soll.
Erwartet hab ich das ich den Port freischalten und dann irgendwo das Zertifikat defenieren kann.
Ich hab Leider nichts gefunden wo ich für diesen Container ein Zertifikat(self signed or letsEncrypt) hinterlegen kann.

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