certd/docker/run/docker-compose.yaml

49 lines
3.0 KiB
YAML
Raw Normal View History

2024-09-26 06:53:00 +00:00
version: '3.3' # 兼容旧版docker-compose
2023-07-03 02:14:22 +00:00
services:
2023-05-25 09:14:58 +00:00
certd:
# 镜像 # ↓↓↓↓↓ ---- 镜像版本号,建议改成固定版本号
2024-07-23 04:35:24 +00:00
image: registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest
2023-05-25 09:14:58 +00:00
container_name: certd # 容器名
2024-06-15 16:42:17 +00:00
restart: unless-stopped # 自动重启
2023-06-28 07:16:19 +00:00
volumes:
2024-09-12 01:26:00 +00:00
# ↓↓↓↓↓ -------------------------------------------------------- 数据库以及证书存储路径,默认存在宿主机的/data/certd/目录下,【您需要定时备份此目录,以保障数据容灾】
2023-05-25 09:14:58 +00:00
- /data/certd:/app/data
ports: # 端口映射
2024-09-12 01:26:00 +00:00
# ↓↓↓↓ ---------------------------------------------------------- 如果端口有冲突可以修改第一个7001为其他不冲突的端口号
2023-05-25 09:14:58 +00:00
- "7001:7001"
# ↓↓↓↓ ---------------------------------------------------------- https端口可以根据实际情况是否暴露相关服务端口
- "7002:7002"
2024-07-31 05:46:48 +00:00
dns:
2024-09-12 01:26:00 +00:00
# ↓↓↓↓ ---------------------------------------------------------- 如果出现getaddrinfo ENOTFOUND等错误可以尝试修改或注释dns配置
2024-07-31 05:46:48 +00:00
- 223.5.5.5
- 223.6.6.6
2024-09-12 01:26:00 +00:00
# ↓↓↓↓ ---------------------------------------------------------- 如果你服务器部署在国外可以用8.8.8.8替换上面的dns
# - 8.8.8.8
# - 8.8.4.4
2024-09-12 01:26:00 +00:00
# extra_hosts:
# ↓↓↓↓ ---------------------------------------------------------- 这里可以配置自定义hosts外网域名可以指向本地局域网ip地址
# - "localdomain.comm:192.168.1.3"
2023-07-03 02:14:22 +00:00
environment: # 环境变量
2024-10-10 17:27:02 +00:00
- TZ=Asia/Shanghai
2024-10-10 17:22:38 +00:00
# 设置环境变量即可自定义certd配置
# 配置项见: packages/ui/certd-server/src/config/config.default.ts
# 配置规则: certd_ + 配置项, 点号用_代替
# ↓↓↓↓ ----------------------------- 如果忘记管理员密码可以设置为true重启之后管理员密码将改成123456然后请及时修改回false
- certd_system_resetAdminPasswd=false
# ↓↓↓↓ -------------------------------- 默认同时启动httpshttps访问地址https://your.domain:7002
#- certd_https_key=./data/ssl/cert.key
#- certd_https_cert=./data/ssl/cert.crt
#- certd_https_enabled=true
#- certd_https_port=7002
-
2024-10-10 17:22:38 +00:00
# ↓↓↓↓ ------------------------------- 使用postgresql数据库
# - certd_flyway_scriptDir=./db/migration-pg # 升级脚本目录
# - certd_typeorm_dataSource_default_type=postgres # 数据库类型
# - certd_typeorm_dataSource_default_host=localhost # 数据库地址
# - certd_typeorm_dataSource_default_port=5433 # 数据库端口
# - certd_typeorm_dataSource_default_username=postgres # 用户名
# - certd_typeorm_dataSource_default_password=yourpasswd # 密码
# - certd_typeorm_dataSource_default_database=certd # 数据库名