1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +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 66f81a975e
commit 2fc0ad1ba0
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,7 @@
- Fix a bug: unable to use run.fab.mn
- Fix a bug: typo in allow/prevent booking overlapping slots
- Fix a bug: in the admin calendar, the trainings' info panel shows "duration: null minutes"
- Fix a bug: new installation with mapping to an external network does not connect fab-manager to elasticsearch
- `SUPERADMIN_EMAIL` renamed to `ADMINSYS_EMAIL`
- `scripts/run-tests.sh` renamed to `scripts/tests.sh`
- [BREAKING CHANGE] GET `open_api/v1/invoices` won't return `stp_invoice_id` OR `stp_payment_intent_id` anymore. The new field `payment_gateway_object` will contain some similar data if the invoice was paid online by card.

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