Skip to content

Latest commit

 

History

History
88 lines (57 loc) · 1.85 KB

File metadata and controls

88 lines (57 loc) · 1.85 KB

Local Docker

This Docker service is used in my local environment to start the most common services used by me.

This is for my personal use, if i could help i will be happy! Sorry for my english, i'm trying very hard

Tested in

  • Fedora Linux
  • Windows 11 WSL2
  • MacOS

Services available

  • postgres
  • rabbit
  • nats
  • redis
  • aws (Read next)

AWS

To configure AWS Service, add an alias to you terminal (.zshrc in my case):

alias aws="docker run --rm -ti -v ~/.aws:/root/.aws -v $(pwd):/aws amazon/aws-cli"

Reload your configurations (source .zshrc in my terminal or close all terminals and reopen).

Test:

aws --version

And configure:

aws configure

All informations can be found or generated in AWS Console > Your user (top-right) > Security Credentials.

LocalStack

If you need to validate your LocalStack configuration in docker-compose:

localstack config validate --file docker-compose.yaml

To open the dashboard:

User Guides

User Guides

AWS CLI integration

Inside your ~/.aws directory, create config and credentials files with with the following content:

config:

[profile default]
region=us-east-1
output=json
endpoint_url = http://host.docker.internal:4566

credentials

[default]
aws_access_key_id=test
aws_secret_access_key=test
  • Replace [default] and [profile default] with [localstack] and [profile localstack] if you want to keep your AWS account as the default.
  • Change endpoint_url from http://host.docker.internal:4566 to http://localhost:4566 if you’re not using the AWS CLI inside Docker..