-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdocker-compose.Debug.yml
44 lines (40 loc) · 1.07 KB
/
docker-compose.Debug.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '3.4'
# 本文件 仅用作 Debug 用
services:
simcaptcha.service:
build:
context: .
dockerfile: examples/EasyAspNetCoreService/Dockerfile.Debug
# 当同时设置 build, image 时,image 名将作为最后的镜像名
image: simcaptcha-debug
container_name: simcaptcha-debug-container
ports:
- "5004:80"
restart: always
environment:
- TZ=Asia/Shanghai
- ASPNETCORE_ENVIRONMENT=DockerDebug
# 注意:http://*:80 不要用 双引号 "" 引起来
- ASPNETCORE_URLS=http://*:80
networks:
- simcaptcha-net
simcaptcha.client:
build:
context: .
dockerfile: examples/AspNetCoreClient/Dockerfile.Debug
image: simcaptcha-client-debug
container_name: simcaptcha-client-debug-container
ports:
- "5002:80"
restart: always
depends_on:
- simcaptcha.service
environment:
- TZ=Asia/Shanghai
- ASPNETCORE_ENVIRONMENT=DockerDebug
- ASPNETCORE_URLS=http://*:80
networks:
- simcaptcha-net
networks:
simcaptcha-net:
driver: bridge