-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
32 lines (32 loc) · 1.07 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
version: '3'
services:
behappy-screw-doc:
restart: 'no'
privileged: true
container_name: behappy-screw-doc
image: wangxiaowu950330/behappy-screw-doc:latest
# 自定义环境变量
environment:
# 是否启用注册,默认开启
REGISTER_ENABLE: true
# 缓存方式,默认为caffeine
CACHE_TYPE: caffeine
# REDIS_HOST: 127.0.0.1
# REDIS_PORT: 9000
# REDIS_PASSWORD: redis
# LDAP配置,如需要请配置
# LDAP_URL: ldap://127.0.0.1:389
# LDAP_BASE: dc=extension,dc=net
# LDAP_USERNAME: cn=admin,dc=extension,dc=net
# LDAP_PASSWORD: 123456
# 服务本身数据持久化(mysql)
DATASTORE_BASE: screw_doc
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: 3306
MYSQL_USERNAME: root
MYSQL_PASSWORD: root
ports:
- "8999:8080"
volumes:
# 默认每个数据库生成的html会放在容器内的/user/src/app/doc下,这里将其挂载到宿主机的/opt/dbdoc/doc,你可以自定义挂载宿主机的文件位置
- /opt/dbdoc/doc:/user/src/app/doc