diff --git a/app/services/storage_service.rb b/app/services/storage_service.rb index 99296bb1..147df62b 100644 --- a/app/services/storage_service.rb +++ b/app/services/storage_service.rb @@ -51,7 +51,7 @@ def create_configuration def create_client if Rails.env.test? Aws::S3::Client.new( - endpoint: "http://localhost:4566", + endpoint: "http://127.0.0.1:4566", credentials: Aws::Credentials.new( @configuration.access_key_id, @configuration.secret_access_key, diff --git a/bin/init-s3-localstack.py b/bin/init-s3-localstack.py index 5720d2a9..cb8dfd77 100644 --- a/bin/init-s3-localstack.py +++ b/bin/init-s3-localstack.py @@ -2,7 +2,7 @@ s3_client = boto3.client( "s3", - endpoint_url=f"http://localhost:4566", + endpoint_url=f"http://127.0.0.1:4566", aws_access_key_id="test", aws_secret_access_key="test" ) diff --git a/db/schema.rb b/db/schema.rb index ee83c757..f775ae86 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2022_10_17_135842) do +ActiveRecord::Schema[7.1].define(version: 2022_10_17_135842) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" enable_extension "plpgsql" diff --git a/docker-compose.yml b/docker-compose.yml index b3fb0299..4d74f407 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -49,9 +49,10 @@ services: environment: - PERSISTENCE=1 ports: - - "4566:4566" + - "127.0.0.1:4566:4566" volumes: - "./bin/init-s3-localstack.py:/etc/localstack/init/ready.d/init-s3.py" + - "/var/run/docker.sock:/var/run/docker.sock" mock-api: build: http-mock-server