1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

[bug] new installation with mapping to an external network does not connect fab-manager to elasticsearch

This commit is contained in:
Sylvain 2021-05-21 10:13:31 +02:00
parent b255abaf55
commit cecdf07dc6
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# Changelog Fab-manager
- Fix a bug: reservation of slots restricted to subscribers leads to invoices without invoiced_id
- Fix a bug: new installation with mapping to an external network does not connect fab-manager to elasticsearch
## v4.7.9 2021 May 17

View File

@ -213,10 +213,11 @@ prepare_nginx()
if [ "$confirm" != "n" ]; then
echo "Adding a network configuration to the docker-compose.yml file..."
yq -i eval '.networks.web.external = "true"' docker-compose.yml
yq -i eval '.networks.db = null' docker-compose.yml
yq -i eval -n '.networks.db = "" | .networks.db="!!null"' docker-compose.yml
yq -i eval '.services.fabmanager.networks += ["web"]' docker-compose.yml
yq -i eval '.services.fabmanager.networks += ["db"]' docker-compose.yml
yq -i eval '.services.postgres.networks += ["db"]' docker-compose.yml
yq -i eval '.services.elasticsearch.networks += ["db"]' docker-compose.yml
yq -i eval '.services.redis.networks += ["db"]' docker-compose.yml
fi
read -rp "- Do you want to rename the Fab-manager's service? (Y/n) " confirm </dev/tty