forked from yiyungent/SimCaptcha
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (33 loc) · 841 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (33 loc) · 841 Bytes
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
version: '3.4'
# 本文件 用作 Release 用,用作 Docker 部署
services:
simcaptcha.service:
image: yiyungent/simcaptcha
container_name: simcaptcha-container
ports:
- "5004:80"
restart: always
environment:
- TZ=Asia/Shanghai
- ASPNETCORE_ENVIRONMENT=Docker
# 注意:http://*:80 不要用 双引号 "" 引起来
- ASPNETCORE_URLS=http://*:80
networks:
- simcaptcha-net
simcaptcha.client:
image: yiyungent/simcaptcha-client
container_name: simcaptcha-client-container
ports:
- "5002:80"
restart: always
depends_on:
- simcaptcha.service
environment:
- TZ=Asia/Shanghai
- ASPNETCORE_ENVIRONMENT=Docker
- ASPNETCORE_URLS=http://*:80
networks:
- simcaptcha-net
networks:
simcaptcha-net:
driver: bridge