This repository contains a Flask application named Intouch
that uses PostgreSQL as its database. This application is Dockerized for easy development and deployment.
Intouch Demo (Username: demo
, Password: demo
)
- Docker
- Docker Compose
-
Clone the repository:
git clone https://github.com/yourusername/intouch.git cd intouch
-
Build and start the Docker containers:
docker-compose up --build -d
The
-d
flag will run the containers in the background. You can also omit this flag to run it in the foreground and view logs.
The Intouch
Flask application will be running on http://localhost:5005.
The PostgreSQL instance will be accessible at localhost:5432
(or whichever port you specify in the docker-compose.yml
).
-
View logs:
- Intouch:
docker-compose logs intouch
- PostgreSQL:
docker-compose logs postgres
- Intouch:
-
Open a shell inside the containers:
- Intouch:
docker-compose exec intouch /bin/bash
- PostgreSQL:
docker-compose exec postgres psql -U in intouchdb
- Intouch: