POSTGRES_USER=postgres
POSTGRES_PASSWORD=password
PGADMIN_DEFAULT_EMAIL=admin@admin.com
PGADMIN_DEFAULT_PASSWORD=admin
POSTGRES_CRAWL_USER=admin_spider
POSTGRES_CRAWL_PASSWORD=password
docker compose --env-file .env up
docker compose down
DATABASES = {
'default': {
'NAME': 'postgres',
'USER': 'admin_spider',
'PASSWORD': 'password',
'HOST': 'localhost',
'PORT': '5432', # Default PostgreSQL port
}
}
docker compose --env-file .env up --build
docker compose down -v
docker exec -it postgres_container /bin/bash
ls -la /docker-entrypoint-initdb.d/
scrapy startproject <project_name>
scrapy crawl <spider_name>
docker compose down -v
docker rmi --force $(docker images | grep -E 'news_crawler-scrapy|news_crawler-postgres|dpage/pgadmin4')
docker compose --env-file .env up --build
exec /usr/src/app/run.sh: no such file or directory
error check the end of line sequence of this file