[IMP]Manage nginx ports

This commit is contained in:
Fabien BOURGEOIS 2017-07-01 15:48:03 +02:00
parent 74c4b99c81
commit 0b153187ef
3 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
server {
listen 80 default_server;
listen 443 ssl default_server;
listen ${NGINX_PORT} default_server;
listen {NGINX_SSL_PORT ssl default_server;
server_name ${NGINX_HOST};
ssl_certificate /etc/nginx/certs/req.pem;
ssl_certificate_key /etc/nginx/certs/cert.key;

View File

@ -9,6 +9,8 @@ services:
environment:
PORT: 80
NGINX_HOST: localhost 127.0.0.1
NGINX_PORT: 80
NGINX_SSL_PORT: 443
ODOO_SERVICE: odoo
ODOO_SERVER_NAMES: localodoo odoo ocb

View File

@ -5,10 +5,10 @@ services:
image: registry.yaltik.net/nginx:odoo
environment:
NGINX_HOST: localhost 127.0.0.1
NGINX_PORT: 80
NGINX_SSL_PORT: 443
ODOO_SERVICE: odoo
ODOO_SERVER_NAMES: localodoo odoo ocb
ODOO_NGINX_PORT: 80
ODOO_NGINX_SSL_PORT: 443
ports:
- "80:80"
- "443:443"