Sign inSign up

cristol/docker-db-connection

By cristol

•Updated over 3 years ago

TD Docker IMT Lille Nord Europe

Image
1

88

cristol/docker-db-connection repository overview

⁠TD Docker IMT Lille Nord Europe

App in JS to check connexion with Mysql/MariaDB
Source code : Jimmy Trackoen Gitlab⁠

⁠Supported tags

  • 1.0.0 --> node:lts based image
  • 1.0.0-alpine --> alpine based image

⁠Deployment

⁠Docker run
docker run -d --name Container_Name \
  -e HOST=localhost \
  -e DB_PORT=3306 \
  -e USER=root \
  -e PASSWORD=paswrd \
  -p 8080:8080 \
  cristol/docker-db-connection:1.0.0
⁠Docker compose
version: '3.9'
services:
    docker-db-connection:
        container_name: Container_Name
        ports:
            - 8080:8080
        environment:
            - HOST=localhost
            - DB_PORT=3306 
            - USER=root
            - PASSWORD=paswrd
        image: cristol/docker-db-connection:1.0.0
⁠Options
OptionsDefaultComments
-e HOSTlocalhostNo database are launched in this image, you must specify a HOST
-e DB_PORT3306
-e USERrootSet a valid user (Mysql/MariaDB Credential)
-e PASSWORDpaswrdSet a valid Password (Mysql/MariaDB Credential)
-p 8080:8080X
⁠Connexion

http://localhost:8080⁠

if you see "Connection à la DB Failed" check state of your Mysql/MariaDB instance and / or your login crendentials

⁠Logs

docker logs -f Container_Name

⁠Extra

⁠Light image

I also offer a light image created from alpine, it weighs 70MB, pull it with this tag 1.0.0-alpine


Cristol Bardou

Tag summary

Content type

Image

Digest

sha256:f187d4cde…

Size

25.9 MB

Last updated

over 3 years ago

docker pull cristol/docker-db-connection:1.0.0-alpine