Allow specifying overrides for docker services
This commit is contained in:
parent
cc378bec13
commit
037b4d0f92
2 changed files with 3 additions and 1 deletions
|
@ -2,3 +2,4 @@ include:
|
||||||
- path:
|
- path:
|
||||||
- docker-compose.base.yml
|
- docker-compose.base.yml
|
||||||
- docker-compose.secrets.yml
|
- docker-compose.secrets.yml
|
||||||
|
- docker-compose.overrides.yml
|
||||||
|
|
|
@ -116,6 +116,7 @@ begin
|
||||||
sudo mkdir -p (getServiceRoot $argv)
|
sudo mkdir -p (getServiceRoot $argv)
|
||||||
sudo mkdir -p "$nginxRoot"
|
sudo mkdir -p "$nginxRoot"
|
||||||
sudo mkdir -p (dirname (getServiceSecretsConfig $argv))
|
sudo mkdir -p (dirname (getServiceSecretsConfig $argv))
|
||||||
|
sudo touch "$root/docker-compose.overrides.yml"
|
||||||
sudo cp "$dir/docker-compose.yml" "$root"
|
sudo cp "$dir/docker-compose.yml" "$root"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -183,6 +184,6 @@ begin
|
||||||
set extraPatterns "|$extraPatterns"
|
set extraPatterns "|$extraPatterns"
|
||||||
end
|
end
|
||||||
|
|
||||||
printf "%s\n" --base-directory (getServiceRoot $argv) --hidden --no-ignore "^(docker-compose\.secrets\.yml|data)\$$extraPatterns"
|
printf "%s\n" --base-directory (getServiceRoot $argv) --hidden --no-ignore "^(docker-compose\.(secrets|overrides)\.yml|data)\$$extraPatterns"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue