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
- postgres
- rabbit
- nats
- redis
- aws (Read next)
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.
If you need to validate your LocalStack configuration in docker-compose:
localstack config validate --file docker-compose.yamlTo open the dashboard:
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:4566credentials
[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_urlfromhttp://host.docker.internal:4566tohttp://localhost:4566if you’re not using the AWS CLI inside Docker..