[IMP]Odoo Nginx service improvement with variable service name
This commit is contained in:
parent
bf5e2e215c
commit
cff23321d3
@ -1,9 +1,9 @@
|
|||||||
upstream odooserver {
|
upstream odooserver {
|
||||||
server odoo:8069 fail_timeout=300s;
|
server ${ODOO_SERVICE}:8069 fail_timeout=300s;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream odoolongpoll {
|
upstream odoolongpoll {
|
||||||
server odoo:8072 fail_timeout=300s;
|
server ${ODOO_SERVICE}:8072 fail_timeout=300s;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
@ -5,6 +5,7 @@ services:
|
|||||||
image: odoonginx:latest
|
image: odoonginx:latest
|
||||||
environment:
|
environment:
|
||||||
NGINX_HOST: localhost 127.0.0.1
|
NGINX_HOST: localhost 127.0.0.1
|
||||||
|
ODOO_HOST: odoo
|
||||||
ODOO_SERVER_NAMES: localodoo odoo ocb
|
ODOO_SERVER_NAMES: localodoo odoo ocb
|
||||||
LIST_DB: "False"
|
LIST_DB: "False"
|
||||||
ports:
|
ports:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user