-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathcompose.yml
More file actions
53 lines (51 loc) · 1.22 KB
/
compose.yml
File metadata and controls
53 lines (51 loc) · 1.22 KB
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
45
46
47
48
49
50
51
52
53
services:
httpsok-nginx-alpine:
# 构建
build:
context: .
dockerfile: Dockerfile-alpine
# 设置容器名称
container_name: httpsok-nginx-alpine
# 镜像
image: httpsok/nginx:1.27.5-alpine
# 端口
ports:
- "80:80"
- "443:443"
# 挂载
volumes:
- ../demo/conf.d:/etc/nginx/conf.d
- ../demo/html:/var/html/
- ../demo/certs:/etc/nginx/certs
# 环境变量
environment:
# 设置时区为东八区
- TZ=Asia/Shanghai
# 设置TOKEN,从httpsok.com 控制台获取
- HTTPSOK_TOKEN=2JMRIohknAn4pEuzOZCV
- HTTPSOK_DEV=dev.sh
httpsok-nginx:
# 构建
build:
context: .
dockerfile: Dockerfile
# 设置容器名称
container_name: httpsok-nginx
# 镜像
image: httpsok/nginx:1.27.5
# 端口
ports:
- "80:80"
- "443:443"
# 挂载
volumes:
- ../demo/conf.d:/etc/nginx/conf.d
- ../demo/html:/var/html/
- ../demo/certs:/etc/nginx/certs
# 环境变量
environment:
# 设置时区为东八区
- TZ=Asia/Shanghai
# 设置TOKEN,从httpsok.com 控制台获取
- HTTPSOK_TOKEN=2JMRIohknAn4pEuzOZCV
- HTTPSOK_DEV=dev.sh