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' } %>
