mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: make db configurable
This commit is contained in:
@@ -189,7 +189,7 @@ services:
|
|||||||
bench set-config -g redis_socketio "redis://$$REDIS_QUEUE";
|
bench set-config -g redis_socketio "redis://$$REDIS_QUEUE";
|
||||||
bench set-config -gp socketio_port $$SOCKETIO_PORT;
|
bench set-config -gp socketio_port $$SOCKETIO_PORT;
|
||||||
environment:
|
environment:
|
||||||
DB_HOST: db
|
DB_HOST: "${DB_HOST:-db}"
|
||||||
DB_PORT: "3306"
|
DB_PORT: "3306"
|
||||||
REDIS_CACHE: redis-cache:6379
|
REDIS_CACHE: redis-cache:6379
|
||||||
REDIS_QUEUE: redis-queue:6379
|
REDIS_QUEUE: redis-queue:6379
|
||||||
@@ -262,6 +262,8 @@ services:
|
|||||||
db:
|
db:
|
||||||
image: mariadb:10.6
|
image: mariadb:10.6
|
||||||
deploy:
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
replicas: ${ENABLE_DB:-0}
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: always
|
condition: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ export function generate(schema: Schema): Template {
|
|||||||
`ADMIN_PASSWORD=${adminPassword}`,
|
`ADMIN_PASSWORD=${adminPassword}`,
|
||||||
`DB_ROOT_PASSWORD=${dbRootPassword}`,
|
`DB_ROOT_PASSWORD=${dbRootPassword}`,
|
||||||
"MIGRATE=1",
|
"MIGRATE=1",
|
||||||
|
"ENABLE_DB=1",
|
||||||
|
"DB_HOST=db",
|
||||||
"CREATE_SITE=1",
|
"CREATE_SITE=1",
|
||||||
"CONFIGURE=1",
|
"CONFIGURE=1",
|
||||||
"REGENERATE_APPS_TXT=1",
|
"REGENERATE_APPS_TXT=1",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export function generate(schema: Schema): Template {
|
|||||||
];
|
];
|
||||||
|
|
||||||
const envs = [
|
const envs = [
|
||||||
`# visit the page to setup your super admin user`,
|
"# visit the page to setup your super admin user",
|
||||||
"# check config.toml in Advanced / Volumes for more options",
|
"# check config.toml in Advanced / Volumes for more options",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user