Initial
This commit is contained in:
commit
2ca7a264b3
53 files changed
+7113
No files matched your search
@@ -0,0 +1,24 @@
|
||||
name: vzlet-demo
|
||||
services:
|
||||
demo:
|
||||
build: {context: ., dockerfile: Dockerfile.demo}
|
||||
restart: unless-stopped
|
||||
user: "10001:10001"
|
||||
read_only: true
|
||||
cap_drop: [ALL]
|
||||
security_opt: ["no-new-privileges:true"]
|
||||
environment: {GOMEMLIMIT: 80MiB, GOMAXPROCS: "1"}
|
||||
pids_limit: 48
|
||||
mem_limit: 128m
|
||||
cpus: 1
|
||||
ulimits:
|
||||
nofile: {soft: 512, hard: 512}
|
||||
ports: ["${BIND_ADDRESS:-127.0.0.1}:${HTTP_PORT:-8080}:8080"]
|
||||
healthcheck:
|
||||
test: ["CMD","/server","-health"]
|
||||
interval: 20s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
logging:
|
||||
driver: json-file
|
||||
options: {max-size: "2m", max-file: "2"}
|
||||
Reference in new issue
Block a user