[IMP]Odoo Nginx service improvement with variable service name

This commit is contained in:
Fabien Bourgeois 2016-10-04 08:25:26 +02:00
parent bf5e2e215c
commit cff23321d3
2 changed files with 3 additions and 2 deletions

View File

@ -1,9 +1,9 @@
upstream odooserver {
server odoo:8069 fail_timeout=300s;
server ${ODOO_SERVICE}:8069 fail_timeout=300s;
}
upstream odoolongpoll {
server odoo:8072 fail_timeout=300s;
server ${ODOO_SERVICE}:8072 fail_timeout=300s;
}
server {

View File

@ -5,6 +5,7 @@ services:
image: odoonginx:latest
environment:
NGINX_HOST: localhost 127.0.0.1
ODOO_HOST: odoo
ODOO_SERVER_NAMES: localodoo odoo ocb
LIST_DB: "False"
ports: