revert: 示例回到 image/compile-dotnet6/demo,移除顶层 demo 目录
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
version: '3.8'
|
||||
|
||||
networks:
|
||||
dotnet6-demo:
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: "172.26.0.0/24"
|
||||
|
||||
services:
|
||||
demo:
|
||||
image: registry.cn-shanghai.aliyuncs.com/odboy/kenaito:demo-dotnet6 # 镜像由 build.sh 构建
|
||||
container_name: dotnet6-demo
|
||||
restart: unless-stopped
|
||||
ports: # 映射端口
|
||||
- "8080:8080"
|
||||
environment: # 设置环境变量,相当于docker run命令中的-e
|
||||
TZ: Asia/Shanghai
|
||||
ASPNETCORE_URLS: http://0.0.0.0:8080
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "netstat -tln | grep -q ':8080 '"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 5s
|
||||
networks:
|
||||
dotnet6-demo:
|
||||
ipv4_address: 172.26.0.20
|
||||
Reference in New Issue
Block a user