Skip to content

Commit

Permalink
readme and move config inside docker obj
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzon committed Jan 22, 2024
1 parent bd0aec5 commit 296b1ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ custom:
docker:
# Enable this flag to run "docker ..." commands as sudo
sudo: False
compose_file: /home/localstack_compose.yml # optional to use docker compose instead of docker or localstack cli
stages:
local:
...
Expand Down Expand Up @@ -207,7 +208,7 @@ custom:
```
## Change Log
* v1.2.1: Add docker_compose config and fix autostart when plugin is not active
* v1.1.3: Fix replacing host from environment variable `AWS_ENDPOINT_URL`
* v1.1.2: Unify construction of target endpoint URL, add support for configuring `AWS_ENDPOINT_URL`
* v1.1.1: Fix layer deployment if `mountCode` is enabled by always packaging and deploying
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ class LocalstackPlugin {
}

const startCompose = () => {
return exec(`docker-compose -f ${this.config.compose_file} `).then(getContainer)
return exec(`docker-compose -f ${this.config.docker.compose_file} `).then(getContainer)
}

return getContainer().then(
Expand All @@ -481,7 +481,7 @@ class LocalstackPlugin {
return;
}

if(this.config.compose_file){
if(this.config.docker && this.config.docker.compose_file){
return startCompose();
}

Expand Down

0 comments on commit 296b1ed

Please sign in to comment.