-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
959 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
settings: | ||
application: | ||
# dev test prod | ||
mode: prod | ||
# 服务器ip,默认使用 0.0.0.0 | ||
host: 176.17.0.1 | ||
# 服务名称 | ||
name: easy-admin | ||
# 端口号 | ||
port: 8000 # 服务端口号 | ||
readtimeout: 1 | ||
writertimeout: 2 | ||
# 数据权限功能开关 | ||
enabledp: false | ||
# 时区 | ||
timezone: "Africa/Cairo" | ||
# 区域 | ||
local: "" | ||
ssl: | ||
# https domain | ||
domain: localhost:8000 | ||
# https enable | ||
enable: false | ||
# ssl key | ||
key: '-----BEGIN RSA PRIVATE KEY----- | ||
MIIEowIBAAKCAQEAsMQENN7PiyO4mben0zAy37M9HMzOFft0LQL+7i78QMNEJgRc | ||
CQPghxmHsuKYC48Ien3yrL2vvsc93VcsBYsgP2RcfP5Wzmn+90BFbjWA62WT0p7d | ||
RdzTc/QFz27vxyZEuOgu2Xr0FMzD3a7EKi4QaNif8xqtws3d218QIRmM+eKFBfFl | ||
QeeFn/Yjao3Sx95qOv6raIlfqHmBAbAozhGT7ZiUNRLoE7ZizTEqX0la9dZfEQWb | ||
vlWXgm1wHWWLsoCM+n1s72e8Q34MSmzHcjxOcYbD9pg3NilbN4Krpqgf6wW42Gr3 | ||
4cDQsJc7+7ndK2+T6HxGoY514/SMpOgb++qpnwIDAQABAoIBAAuH60BUV+nwiBka | ||
9msxOzha4GiHDFs5voU11fx3+y5HA/njkeoSoyxyTrxYH2lYSMojeiz+PhSDZHaS | ||
ZQWYOEp6WQrcVTxSL3bgmJw3svO9ehb6FF7Q03MTyZHpCjeNuF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prmc2b6aH2N71M+tYCEyWGwJcFH6/TjN5/fW | ||
im7YwEal3+NRXRdW6Gz8OjIakv0FV7MiCZEuDELAi5O6VvuvjuED | ||
-----END RSA PRIVATE KEY-----' | ||
# ssl pem path | ||
pem: temp/fullchain.pem | ||
logger: | ||
# 日志存放路径 | ||
path: temp/logs | ||
# 日志输出,file:文件,default:命令行,其他:命令行 | ||
stdout: '' #控制台日志,启用后,不输出到文件 | ||
# 日志等级, trace, debug, info, warn, error, fatal | ||
level: trace | ||
# 数据库日志开关 | ||
enableddb: false | ||
jwt: | ||
# token 密钥,生产环境时及的修改 | ||
secret: easy-admin | ||
# token 过期时间 单位:秒 | ||
timeout: 3600 | ||
database: | ||
# 数据库类型 mysql, sqlite3, postgres, sqlserver | ||
# sqlserver: sqlserver://用户名:密码@地址?database=数据库名 | ||
driver: mysql | ||
# 数据库连接字符串 mysql 缺省信息 charset=utf8&parseTime=True&loc=Local&timeout=1000ms | ||
source: easyadmin:easyadmin123@tcp(176.7.0.2:3306)/easy_admin?charset=utf8&parseTime=True&loc=Local&timeout=1000ms | ||
# databases: | ||
# 'locaohost:8000': | ||
# driver: mysql | ||
# # 数据库连接字符串 mysql 缺省信息 charset=utf8&parseTime=True&loc=Local&timeout=1000ms | ||
# source: user:password@tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local&timeout=1000ms | ||
# registers: | ||
# - sources: | ||
# - user:password@tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local&timeout=1000ms | ||
gen: | ||
# 代码生成读取的数据库名称 | ||
dbname: easy_admin | ||
# 代码生成是使用前端代码存放位置,需要指定到src文件夹,相对路径 | ||
frontpath: ../ui/src | ||
extend: # 扩展项使用说明 | ||
demo: | ||
name: data | ||
cache: | ||
redis: | ||
addr: 176.7.0.3:6379 | ||
password: | ||
db: 1 | ||
# key存在即可 | ||
memory: '' | ||
queue: | ||
memory: | ||
poolSize: 100 | ||
redis: | ||
addr: 176.7.0.3:6379 | ||
password: | ||
db: 3 | ||
producer: | ||
streamMaxLength: 100 | ||
approximateMaxLength: true | ||
consumer: | ||
visibilityTimeout: 60 | ||
bufferSize: 100 | ||
concurrency: 10 | ||
blockingTimeout: 5 | ||
reclaimInterval: 1 | ||
locker: | ||
redis: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
version: "3.7" | ||
|
||
networks: | ||
easy-admin-network: | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: '176.7.0.0/16' | ||
|
||
volumes: | ||
mysql: | ||
redis: | ||
|
||
services: | ||
server: | ||
image: nicesteven/easy-admin | ||
restart: always | ||
ports: | ||
- '8000:8000' | ||
depends_on: | ||
- mysql | ||
- redis | ||
links: | ||
- mysql | ||
- redis | ||
networks: | ||
easy-admin-network: | ||
ipv4_address: 176.7.0.1 | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "-X GET", "http://176.7.0.1:8080/api/v1/getinfo"] | ||
interval: 1m30s | ||
timeout: 10s | ||
retries: 3 | ||
start_period: 40s | ||
command: | ||
/easy-admin server -c=/config/settings.yml | ||
|
||
mysql: | ||
image: mysql:8.0.21 | ||
container_name: mysql | ||
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci | ||
restart: always | ||
ports: | ||
- "13306:3306" | ||
volumes: | ||
- $PWD/mysql_data/:/var/lib/mysql:rw | ||
- $PWD/mysql_init/:/docker-entrypoint-initdb.d/:rw | ||
- $PWD/config/:/config/ | ||
- /etc/localtime:/etc/localtime:ro | ||
environment: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: "yes" | ||
networks: | ||
easy-admin-network: | ||
ipv4_address: 176.7.0.2 | ||
|
||
redis: | ||
image: redis:6.0.6 | ||
container_name: redis | ||
restart: always | ||
environment: | ||
ALLOW_ANONYMOUS_LOGIN: "yes" | ||
volumes: | ||
- redis:/data | ||
networks: | ||
easy-admin-network: | ||
ipv4_address: 176.7.0.3 |
Empty file.
Oops, something went wrong.