[IMP]Odoo Nginx service improvement with variable service name
This commit is contained in:
parent
bf5e2e215c
commit
cff23321d3
@ -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 {
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user