Commit f3a50610 authored by ibuler's avatar ibuler

[Update] update docker-compose

parent 4141ae51
......@@ -36,3 +36,11 @@ Jumpserver是一款使用Python, Django开发的开源跳板机系统, 助力互
* [项目结构描述](https://github.com/jumpserver/jumpserver/blob/dev/docs/project_structure.md)
* [Python代码规范](https://github.com/jumpserver/jumpserver/blob/dev/docs/python_style_guide.md)
* [API设计规范](https://github.com/jumpserver/jumpserver/blob/dev/docs/api_style_guide.md)
### 贡献者
#### 0.4.0
- ibuler <广宏伟>
- 小彧 <李磊> Django资深开发者,为users模块贡献了很多代码
- sofia <周小侠> 资深前端工程师, luna前端代码贡献者和现在维护者
- liuz <刘正> 全栈工程师, 编写了luna大部分代码
......@@ -9,7 +9,7 @@ from django.shortcuts import HttpResponse
DEMO_MODE = os.environ.get("DEMO_MODE", "")
SAFE_URL = r'^/users/login|^/api/applications/v1/.*'
SAFE_URL = r'^/users/login|^/api/applications/v1/.*|/api/audits/.*|/api/users/v1/auth/|/api/users/v1/profile/'
class TimezoneMiddleware(MiddlewareMixin):
......@@ -24,4 +24,4 @@ class TimezoneMiddleware(MiddlewareMixin):
class DemoMiddleware(MiddlewareMixin):
def process_request(self, request):
if DEMO_MODE and request.method not in ["GET", "HEAD"] and not re.match(SAFE_URL, request.path):
return HttpResponse("Demo mode, only get request accept", 403)
return HttpResponse("Demo mode, only get request accept", status=403)
......@@ -5,7 +5,7 @@ services:
container_name: redis
restart: always
jumpserver:
image: jumpserver/jumpserver:beta
image: jumpserver/jumpserver:v0.4.0-beta1
container_name: jumpserver
restart: always
ports:
......@@ -13,7 +13,7 @@ services:
depends_on:
- redis
coco:
image: jumpserver/coco:beta
image: jumpserver/coco:v0.4.0-beta1
container_name: coco
restart: always
ports:
......@@ -21,7 +21,7 @@ services:
depends_on:
- jumpserver
luna:
image: jumpserver/luna:beta
image: jumpserver/luna:v0.4.0-beta1
container_name: luna
restart: always
ports:
......
......@@ -2,4 +2,4 @@
#
cd ..
docker build -t jumpserver/jumpserver:v0.4.0-beta1 .
\ No newline at end of file
docker build -t jumpserver/jumpserver:v0.4.0-beta1 .
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment