Skip to content

Commit

Permalink
Use internal url & infer RPC_PROTOCOL from the host
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliouzbett committed Oct 1, 2024
1 parent 91cbb6c commit 5801b3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 2 additions & 3 deletions docker-compose-odoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,8 @@ services:
odoo:
condition: service_started
environment:
- ODOO_HOST=odoo
- ODOO_HOST=http://odoo
- ODOO_PORT=8069
- ODOO_RPC_PROTOCOL=${ODOO_RPC_PROTOCOL}
- ODOO_DATABASE=${ODOO_DATABASE}
image: mekomsolutions/fhir-odoo
labels:
Expand Down Expand Up @@ -142,7 +141,7 @@ services:
env-substitution:
environment:
- ODOO_PUBLIC_URL=https://${ODOO_HOSTNAME}
- EXTERNAL_FHIR_API_URL=${ODOO_RPC_PROTOCOL}://${FHIR_ODOO_HOSTNAME}/odoo/fhir/R4
- EXTERNAL_FHIR_API_URL=http://fhir-odoo:8080/odoo/fhir/R4
- EXTERNAL_FHIR_API_USERNAME=${ODOO_USER}
- EXTERNAL_FHIR_API_PASSWORD=${ODOO_PASSWORD}

Expand Down
4 changes: 0 additions & 4 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,11 @@ function setTraefikHostnames {
export SENAITE_HOSTNAME=lims-"${IP_WITH_DASHES}.traefik.me"
export ERPNEXT_HOSTNAME=erpnext-"${IP_WITH_DASHES}.traefik.me"
export FHIR_ODOO_HOSTNAME=fhir-erp-"${IP_WITH_DASHES}.traefik.me"
export ODOO_RPC_PROTOCOL="https"
echo "→ O3_HOSTNAME=$O3_HOSTNAME"
echo "→ ODOO_HOSTNAME=$ODOO_HOSTNAME"
echo "→ SENAITE_HOSTNAME=$SENAITE_HOSTNAME"
echo "→ ERPNEXT_HOSTNAME=$ERPNEXT_HOSTNAME"
echo "→ FHIR_ODOO_HOSTNAME=$FHIR_ODOO_HOSTNAME"
echo "→ ODOO_RPC_PROTOCOL=$ODOO_RPC_PROTOCOL"

}

Expand All @@ -125,13 +123,11 @@ function setNginxHostnames {
export SENAITE_HOSTNAME="localhost:8081"
export ERPNEXT_HOSTNAME="localhost:8082"
export FHIR_ODOO_HOSTNAME="localhost:8083"
export ODOO_RPC_PROTOCOL="http"
echo "→ O3_HOSTNAME=$O3_HOSTNAME"
echo "→ ODOO_HOSTNAME=$ODOO_HOSTNAME"
echo "→ SENAITE_HOSTNAME=$SENAITE_HOSTNAME"
echo "→ ERPNEXT_HOSTNAME=$ERPNEXT_HOSTNAME"
echo "→ FHIR_ODOO_HOSTNAME=$FHIR_ODOO_HOSTNAME"
echo "→ ODOO_RPC_PROTOCOL=$ODOO_RPC_PROTOCOL"

}

Expand Down

0 comments on commit 5801b3e

Please sign in to comment.