Add .env in your project root directory with the following format
POSTGRES_USER=postgres_user
POSTGRES_PASSWORD=your_password
POSTGRES_DB=your_database
HOST=postgres
PORT=5432
sudo systemctl stop postgresql.service
- Stop postgresdocker-compose up --build
- Build and start application (for initial setup)docker-compose up
- Start app without building (for continuous development)docker-compose up -d
- Start in detachment mode
docker-compose exec db psql --username=postgres_user --dbname=your_password