@@ -4,6 +4,8 @@ services:
44 postgresql :
55 image : ghcr.io/l3montree-dev/devguard/postgresql:0.13.2
66 container_name : devguard-postgres
7+ security_opt :
8+ - no-new-privileges:true
79 environment :
810 POSTGRES_USER : postgres
911 POSTGRES_PASSWORD : password
@@ -23,6 +25,10 @@ services:
2325
2426 kratos-migrate :
2527 image : oryd/kratos:v1.3.1
28+ security_opt :
29+ - no-new-privileges:true
30+ cap_drop :
31+ - ALL
2632 depends_on :
2733 postgresql :
2834 condition : service_healthy
@@ -39,6 +45,11 @@ services:
3945 kratos :
4046 image : oryd/kratos:v1.3.1
4147 container_name : devguard-kratos
48+ security_opt :
49+ - no-new-privileges:true
50+ cap_drop :
51+ - ALL
52+ user : " 53111"
4253 depends_on :
4354 postgresql :
4455 condition : service_healthy
@@ -62,6 +73,11 @@ services:
6273 devguard-api :
6374 image : ghcr.io/l3montree-dev/devguard:0.13.2
6475 container_name : devguard-api
76+ security_opt :
77+ - no-new-privileges:true
78+ cap_drop :
79+ - ALL
80+ user : " 53111"
6581 depends_on :
6682 postgresql :
6783 condition : service_healthy
@@ -87,6 +103,10 @@ services:
87103 devguard-web :
88104 image : ghcr.io/l3montree-dev/devguard-web:0.13.2
89105 container_name : devguard-web
106+ security_opt :
107+ - no-new-privileges:true
108+ cap_drop :
109+ - ALL
90110 depends_on :
91111 - devguard-api
92112 ports :
0 commit comments