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-10-10 18:54:42 +00:00
|
|
|
|
# 镜像 # ↓↓↓↓↓ ---- 镜像版本号,建议改成固定版本号
|
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"
|
2024-11-13 14:42:11 +00:00
|
|
|
|
# ↓↓↓↓ ---------------------------------------------------------- https端口,可以根据实际情况,是否暴露该端口
|
2024-10-26 09:14:55 +00:00
|
|
|
|
- "7002:7002"
|
2024-11-11 05:50:09 +00:00
|
|
|
|
# #↓↓↓↓ -------------------------------------------------------------- 如果出现getaddrinfo ENOTFOUND等错误,可以尝试设置dns配置
|
|
|
|
|
# dns:
|
|
|
|
|
# - 223.5.5.5
|
|
|
|
|
# - 223.6.6.6
|
|
|
|
|
# # ↓↓↓↓ --------------------------------------------------------- 如果你服务器在腾讯云,可以用这个dns地址
|
|
|
|
|
# - 119.29.29.29
|
|
|
|
|
# - 182.254.116.116
|
|
|
|
|
# # ↓↓↓↓ --------------------------------------------------------- 如果你服务器部署在国外,可以用8.8.8.8替换上面的dns
|
|
|
|
|
# - 8.8.8.8
|
|
|
|
|
# - 8.8.4.4
|
|
|
|
|
|
2024-09-12 01:26:00 +00:00
|
|
|
|
# extra_hosts:
|
2024-11-13 14:42:11 +00:00
|
|
|
|
# # ↓↓↓↓ -------------------------------------------------------- 这里可以配置自定义hosts,外网域名可以指向本地局域网ip地址
|
2024-09-12 01:26:00 +00:00
|
|
|
|
# - "localdomain.comm:192.168.1.3"
|
2024-11-11 05:50:09 +00:00
|
|
|
|
|
2024-10-31 08:19:35 +00:00
|
|
|
|
environment:
|
2024-11-13 14:42:11 +00:00
|
|
|
|
# 设置环境变量即可自定义certd配置
|
|
|
|
|
# 配置项见: packages/ui/certd-server/src/config/config.default.ts
|
|
|
|
|
# 配置规则: certd_ + 配置项, 点号用_代替
|
|
|
|
|
# #↓↓↓↓ ----------------------------- 如果忘记管理员密码,可以设置为true,重启之后,管理员密码将改成123456,然后请及时修改回false
|
2024-08-23 09:16:52 +00:00
|
|
|
|
- certd_system_resetAdminPasswd=false
|
2024-11-13 14:42:11 +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 # 数据库名
|
2024-10-10 17:22:38 +00:00
|
|
|
|
|
2024-11-13 14:42:11 +00:00
|
|
|
|
# #↓↓↓↓ ------------------------------------------------------------- 启用ipv6网络
|
|
|
|
|
# networks:
|
|
|
|
|
# - ip6net
|
|
|
|
|
#networks:
|
|
|
|
|
# ip6net:
|
|
|
|
|
# enable_ipv6: true
|
|
|
|
|
# ipam:
|
|
|
|
|
# config:
|
|
|
|
|
# - subnet: 2001:db8::/64
|