[IMP]Manage nginx ports
This commit is contained in:
parent
74c4b99c81
commit
0b153187ef
@ -1,6 +1,6 @@
|
|||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen ${NGINX_PORT} default_server;
|
||||||
listen 443 ssl default_server;
|
listen {NGINX_SSL_PORT ssl default_server;
|
||||||
server_name ${NGINX_HOST};
|
server_name ${NGINX_HOST};
|
||||||
ssl_certificate /etc/nginx/certs/req.pem;
|
ssl_certificate /etc/nginx/certs/req.pem;
|
||||||
ssl_certificate_key /etc/nginx/certs/cert.key;
|
ssl_certificate_key /etc/nginx/certs/cert.key;
|
||||||
|
@ -9,6 +9,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
PORT: 80
|
PORT: 80
|
||||||
NGINX_HOST: localhost 127.0.0.1
|
NGINX_HOST: localhost 127.0.0.1
|
||||||
|
NGINX_PORT: 80
|
||||||
|
NGINX_SSL_PORT: 443
|
||||||
ODOO_SERVICE: odoo
|
ODOO_SERVICE: odoo
|
||||||
ODOO_SERVER_NAMES: localodoo odoo ocb
|
ODOO_SERVER_NAMES: localodoo odoo ocb
|
||||||
|
|
||||||
|
@ -5,10 +5,10 @@ services:
|
|||||||
image: registry.yaltik.net/nginx:odoo
|
image: registry.yaltik.net/nginx:odoo
|
||||||
environment:
|
environment:
|
||||||
NGINX_HOST: localhost 127.0.0.1
|
NGINX_HOST: localhost 127.0.0.1
|
||||||
|
NGINX_PORT: 80
|
||||||
|
NGINX_SSL_PORT: 443
|
||||||
ODOO_SERVICE: odoo
|
ODOO_SERVICE: odoo
|
||||||
ODOO_SERVER_NAMES: localodoo odoo ocb
|
ODOO_SERVER_NAMES: localodoo odoo ocb
|
||||||
ODOO_NGINX_PORT: 80
|
|
||||||
ODOO_NGINX_SSL_PORT: 443
|
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
Loading…
Reference in New Issue
Block a user