- Docker
- Docker compose
$ git clone https://github.com/sujee/flask-postgres-sample
$ cd flask-postgres-sample
$ docker compose up -d
First time you run this, it will build the app.
And it will launch the following components
- Postgres database
- adminer UI - listening on localhost:8080
- Web app - listening on localhost:8000
Log into adminer UI running on localhost:8080
- username:
postgres
- password:
postgres123
Once you login you will see happydb
.
If this works, postgres and adminer are working together.
Go to webapp running at localhost:8000
You should see a Hello world image as follows
Congratulations! 👏