24
loading...
This website collects cookies to deliver better user experience
connection is ok
message, you’re good to go. The database is empty for now. git clone https://github.com/tinystacks/aws-docker-templates-flask.git
cd aws-docker-templates-flask
git branch -a
.git checkout flask-local-postgres
code .
docker-compose.yml
file is located, type:docker compose build
<AWS_ACCOUNT_ID>
and <REGION>
:aws ecr get-login-password --region <REGION> | docker login --username AWS --password-stdin <AWS_ACCOUNT_ID>.dkr.ecr.<REGION>.amazonaws.com
<REGION>
:aws ecr create-repository --repository-name flask-app --region <REGION>
<IMAGE_TAG>
to create an image with the tag latest
.docker tag pythonapp <IMAGE_TAG>
docker push <IMAGE_TAG>
ecs
on the AWS Management Console:<IMAGE_TAG>
(latest)docker-compose.yml
file:<DATABASE_URL>
postgresql://postgres:postgres@<RDS_INSTANCE_IP>:5432/postgres
<RDS_INSTANCE_IP>
for your instance. You can find your <RDS_INSTANCE_IP>
on TablePlus or RDS./items
/items
:id
of the item we want to retrieve at the end of the /items
path. For example /items/2
retrieves the item with id = 2./items/3
: