You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://bitbucket.org/programic/docker-devtools
cd docker-devtools
Create external networks
docker network create web
docker network create localstack
Start dev-tools:
docker compose up -d
Add the bin folder to your $PATH
# Bash as shell
nano ~/.bashrc
# ZSH as shell
nano ~/.zshrc
# Add this to the bottom of this file, and change the path to your docker-devtools folderexport PATH="${PATH}:/Users/remco/code/docker-devtools/bin"
Chrome: out of the box, except for Ubuntu. Chrome does not support system installed certificates anymore,
which is why .crt files in the Ubuntu filesystem will be recognized, but not accepted. After installing the files,
go to Chrome, Settings > Privacy and Security > Security > Manage Certificates. Add the output .crt files to
to the tab Servers. They will then appear in the Others section.
Test the connection and check if the bucket has been created:
docker run --rm -it --network localstack \
-e AWS_ENDPOINT_URL=http://localstack:4566 \
-e AWS_ACCESS_KEY_ID=test \
-e AWS_SECRET_ACCESS_KEY=test \
amazon/aws-cli \
s3 ls
Edit the local docker-compose.yml file of your project:
services:
php:
networks:
localstack: # Add the container to the LocalStack networkworker:
networks:
localstack: # Add the container to the LocalStack networkscheduler:
networks:
localstack: # Add the container to the LocalStack networknetworks:
localstack: # Define the LocalStack networkexternal: true
Configure Laravel filesystem to connect to LocalStack S3: