mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
@@ -19,7 +19,7 @@ services:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- /etc/1panel/envs/onedev/onedev.env
|
||||
- ${APP_ENV_FILE:-/etc/1panel/envs/onedev/onedev.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
environment:
|
||||
- initial_user=${INITIAL_USER}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# 外部数据库支持配置
|
||||
|
||||
# PostgreSQL
|
||||
# hibernate_dialect=io.onedev.server.persistence.PostgreSQLDialect
|
||||
# hibernate_connection_driver_class=org.postgresql.Driver
|
||||
# hibernate_connection_url=jdbc:postgresql://localhost:5432/onedev
|
||||
# hibernate_connection_username=postgres
|
||||
# hibernate_connection_password=postgres
|
||||
|
||||
# MySQL
|
||||
# hibernate_dialect=org.hibernate.dialect.MySQL5InnoDBDialect
|
||||
# hibernate_connection_driver_class=com.mysql.cj.jdbc.Driver
|
||||
# hibernate_connection_url=jdbc:mysql://localhost:3306/onedev?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false&disableMariaDbDriver=true
|
||||
# hibernate_connection_username=root
|
||||
# hibernate_connection_password=root
|
||||
|
||||
# MariaDB
|
||||
# hibernate_dialect=org.hibernate.dialect.MySQL5InnoDBDialect
|
||||
# hibernate_connection_driver_class=org.mariadb.jdbc.Driver
|
||||
# hibernate_connection_url=jdbc:mariadb://localhost:3306/onedev
|
||||
# hibernate_connection_username=root
|
||||
# hibernate_connection_password=root
|
||||
|
||||
# MS SQL Server
|
||||
# hibernate_dialect=org.hibernate.dialect.SQLServer2012Dialect
|
||||
# hibernate_connection_driver_class=com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||
# hibernate_connection_url=jdbc:sqlserver://localhost:1433;databaseName=onedev
|
||||
# hibernate_connection_username=sa
|
||||
# hibernate_connection_password=sa
|
||||
@@ -7,8 +7,10 @@ if [ -f .env ]; then
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
sed -i '/^APP_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
echo "APP_ENV_FILE=${CURRENT_DIR}/envs/onedev.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
|
||||
@@ -7,8 +7,10 @@ if [ -f .env ]; then
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
sed -i '/^APP_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
echo "APP_ENV_FILE=${CURRENT_DIR}/envs/onedev.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user