Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paoliniluis/metabase-app-db-certs
Metabase connected to the App DB via certs
https://github.com/paoliniluis/metabase-app-db-certs
Last synced: 7 days ago
JSON representation
Metabase connected to the App DB via certs
- Host: GitHub
- URL: https://github.com/paoliniluis/metabase-app-db-certs
- Owner: paoliniluis
- Created: 2022-07-01T19:25:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-01T22:41:17.000Z (over 2 years ago)
- Last Synced: 2024-11-07T06:47:36.516Z (about 2 months ago)
- Language: Dockerfile
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
To run this
===============================1) go to the db-dockerfile directory
2) build and tag the image with "docker build . -t name-of-your-image". I used paoliniluis/app-db-with-certs:postgres-14.3-alpine
3) then go to the docker-compose file and include the name of the image you just built and tagged in line 16
4) do a docker-compose up (things won't run, this is only to extract the certificates from the db container)
5) do the following (to copy the certificates):
1) docker cp postgres-app-db-with-certs:/var/lib/postgresql/certs/ca.crt metabase-dockerfile/app-db/ca.crt
2) docker cp postgres-app-db-with-certs:/var/lib/postgresql/certs/client.crt metabase-dockerfile/app-db/client.crt
3) docker cp postgres-app-db-with-certs:/var/lib/postgresql/keys/client.der metabase-dockerfile/app-db/client.der
6) now kill the containers and remove the image that was created for the metabase container (docker rmi postgres-with-certs_metabase-with-certs)
7) now do docker-compose up again (this will rebuild the Metabase image with the client certificates inside and will authenticate with those)Pending
===- put some more automation to this