mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 03:10:48 +08:00
整理配置文件
This commit is contained in:
28
config/database-docker.yml.example
Normal file
28
config/database-docker.yml.example
Normal file
@@ -0,0 +1,28 @@
|
||||
default: &default
|
||||
adapter: mysql2
|
||||
host: <%= ENV.fetch("MYSQL_HOST") { '127.0.0.1' } %>
|
||||
encoding: utf8mb4
|
||||
reconnect: true
|
||||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
||||
username: <%= ENV.fetch("MYSQL_USER") { 'root' } %>
|
||||
password: <%= ENV.fetch("MYSQL_PWD") { '123456' } %>
|
||||
gitea_server:
|
||||
adapter: mysql2
|
||||
database: <%= ENV.fetch("MYSQL_DB") { 'gitea' } %>
|
||||
host: 127.0.0.1
|
||||
username: <%= ENV.fetch("MYSQL_USER") { 'root' } %>
|
||||
password: <%= ENV.fetch("MYSQL_PWD") { '123456' } %>
|
||||
encoding: utf8
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
host: 127.0.0.1
|
||||
database: forge_development
|
||||
|
||||
test:
|
||||
<<: *default
|
||||
database: forge_test
|
||||
|
||||
production:
|
||||
<<: *default
|
||||
database: <%= ENV.fetch("MYSQL_DB") { 'forge_production' } %>
|
||||
Reference in New Issue
Block a user