Skip to content
Snippets Groups Projects
Commit 0295cf58 authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

Add extra_app network if needed

parent b79bfec0
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@ This role makes use of a few variables which are set in case the target server i
* cloud_collabora and cloud_collabora_url
* cloud_onlyoffice and cloud_onlyoffice_url
* docker_odoo
* extra_app
* metabase
Note : all variables defined in defualts_main.yml might be useful in another role, in that case, it would be better to have them overwritten at play or host_vars level in order to make sure the same value is provided to each independant role
......
......@@ -6,6 +6,9 @@ services:
environment:
TZ: "{{ timezone }}"
networks:
{% if odoo_prod.extra_app is defined or odoo_nonprod_instances[0].extra_app is defined %}
app:
{% endif %}
shared:
{% if inventory_hostname in groups['docker_auth'] | union(groups['docker_nagios']) or cloud_collabora or cloud_onlyoffice %}
aliases:
......@@ -63,6 +66,12 @@ services:
restart: unless-stopped
networks:
{% if odoo_prod.extra_app is defined or odoo_nonprod_instances[0].extra_app is defined %}
app:
internal: true
driver_opts:
encrypted: 1
{% endif %}
shared:
{% if restrict_internet_access %}
internal: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment