From f07ae49246f869b187bcb3c0b7ce42b657ad6015 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Wed, 10 May 2023 17:31:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/database-docker.yml.example | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 config/database-docker.yml.example diff --git a/config/database-docker.yml.example b/config/database-docker.yml.example new file mode 100644 index 000000000..13043eb9f --- /dev/null +++ b/config/database-docker.yml.example @@ -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' } %>