If Docker image has not created yet, try the next.
docker run -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -e POSTGRES_DB=newsletter -p 5432:5432 -d postgres postgres -N 1000
Then you can follow the next steps!
In case you already have an Docker image try the next.
- sudo docker start
- SKIP_DOCKER=true ./scripts/init_db.sh
docker build --tag zero2prod --file Dockerfile .
docker run -p 8000:8000 zero2prod
docker exec -it <container-ID> psql -U postgres
curl -i -X POST -d '[email protected]&name=Tom' http://127.0.0.1:8000/subscriptions