Skip to content

ramanamuttana/Traefik-with-Postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 

Repository files navigation

Traefik Reverse Proxy with Postgres and Pgadmin4

Traefik with postgres and pgadmin4

Run traefik

Traefik with Docker on Ubuntu

Note : Make sure docker is up and running .

  1. Pull the docker image from dockerhub: docker pull traefik which will download the latest version or if you are interested on a particular version then downlaod as shown below , for Example:

    docker pull traefik:v3.0
    
    docker pull postgres
    
    docker pull dpage/pgadmin4
    
  2. Open terminal and type sudo nano /etc/hosts , if you are using nano or else vi or with someother editor.

  3. Enter 127.0.0.1 traefik.testing.de pgadmin.testing.de postgres.testing.de add all the domain names by giving the space between them ) according to the traefikwithpostgres.yaml ,

    or

    127.0.0.1 traefik.testing.de
    
    127.0.0.1 postgres.testing.de
    
    127.0.0.1 pgadmin.testing.de
    

    we can change according to our request.

    Note:If we want to change the domain name , change in the traefiklatest.yaml file and in the hosts file.

  4. To save , just type ctrl+x enter Y to save ,then click on ENTER button

  5. Go to the traefikwithpostgres.yaml file directory and then open Terminal and type :docker compose -f traefikwithpostgres.yaml up

  6. Open browser and type traefik.testing.de

Dashboard

alt text

Pgadmin4

  1. Open browser and type pgadmin.testing.de

    Pgadmin credentials :
    
    Username: admin@example.com
    Password: admin
    

DB settings in Pgadmin4

General

Name: Should be service name according to Traefikwithpostgres.yaml for Example: Postgresql

Shared Username: myuser

Connection With DB(Postgres)

alt text

2)Connection Settings

alt text

alt text

To Stop All the Running Containers

  1. Enter Ctrl+c on Terminal , all the containers will be stopped .

About

Traefik with postgres and pgadmin

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published