From d56dac044b7285fbcfaecef57ea5a7c3ab36a620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E4=B8=9E=E5=AE=8F?= Date: Thu, 27 Dec 2018 08:20:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E5=90=88=20nginx-proxy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/i3thuan5/tsu-ki/blob/master/nginx-start --- docker-compose.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 873493c..079cb78 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,8 +6,13 @@ services: command: gunicorn siunn1ua2ah4.wsgi --log-level DEBUG -w 2 -b 0.0.0.0:8000 volumes: - ./hok8_bu7/local.py:/usr/local/hok8-bu7/hok8_bu7/local.py - expose: - - "8000" + networks: + - default + - nginx-bridge environment: VIRTUAL_HOST: "xn--iwqtoz61h.xn--v0qr21b.xn--kpry57d" VIRTUAL_PORT: 8000 + +networks: + nginx-bridge: + external: true