This commit is contained in:
Andras Bacsai 2022-11-03 15:17:31 +01:00
parent 9f3677b694
commit ba2db666aa
5 changed files with 18 additions and 12 deletions

View File

@ -6,9 +6,9 @@
$$id:
image: appsmith/appsmith-ce:$$core_version
environment:
- APPSMITH_MAIL_ENABLED: $$config_appsmith_mail_enabled
- APPSMITH_DISABLE_TELEMETRY: $$config_appsmith_disable_telemetry
- APPSMITH_DISABLE_INTERCOM: $$config_appsmith_disable_intercom
- APPSMITH_MAIL_ENABLED=$$config_appsmith_mail_enabled
- APPSMITH_DISABLE_TELEMETRY=$$config_appsmith_disable_telemetry
- APPSMITH_DISABLE_INTERCOM=$$config_appsmith_disable_intercom
volumes:
- $$id-stacks-data:/appsmith-stacks
ports:
@ -17,17 +17,17 @@
- id: $$config_appsmith_mail_enabled
name: APPSMITH_MAIL_ENABLED
label: Enable Mail
defaultValue: false
defaultValue: 'false'
description: ''
- id: $$config_appsmith_disable_telemetry
name: APPSMITH_DISABLE_TELEMETRY
label: Disable Telemetry
defaultValue: true
defaultValue: 'true'
description: ''
- id: $$config_appsmith_disable_intercom
name: APPSMITH_DISABLE_INTERCOM
label: Disable Intercom
defaultValue: true
defaultValue: 'true'
description: ''
documentation: https://hub.docker.com/r/zadam/trilium
- templateVersion: 1.0.0

View File

@ -356,7 +356,7 @@ async function vscodeserver(service: any, template: any) {
}
async function minio(service: any, template: any) {
const { rootUser, rootUserPassword, apiFqdn } = service.minio
console.log(apiFqdn)
const secrets = [
`MINIO_ROOT_PASSWORD@@@${rootUserPassword}`,
]
@ -433,6 +433,11 @@ async function migrateSettings(settings: any[], service: any, template: any) {
for (const setting of settings) {
if (!setting) continue;
let [name, value] = setting.split('@@@')
let minio = null
if (name === 'MINIO_SERVER_URL') {
minio = name
name = 'coolify_fqdn_minio_console'
}
if (!value || value === 'null') {
continue;
}
@ -440,9 +445,9 @@ async function migrateSettings(settings: any[], service: any, template: any) {
if (!variableName) {
variableName = `$$config_${name.toLowerCase()}`
}
// console.log('Migrating setting', name, value, 'for service', service.id, ', service name:', service.name, 'variableName: ', variableName)
console.log('Migrating setting', name, value, 'for service', service.id, ', service name:', service.name, 'variableName: ', variableName)
await prisma.serviceSetting.findFirst({ where: { name, serviceId: service.id } }) || await prisma.serviceSetting.create({ data: { name, value, variableName, service: { connect: { id: service.id } } } })
await prisma.serviceSetting.findFirst({ where: { name: minio, serviceId: service.id } }) || await prisma.serviceSetting.create({ data: { name: minio, value, variableName, service: { connect: { id: service.id } } } })
}
}
async function migrateSecrets(secrets: any[], service: any) {

View File

@ -40,10 +40,11 @@ export async function refreshTags() {
try {
const { default: got } = await import('got')
try {
const tags = await got.get('https://get.coollabs.io/coolify/service-tags.json').text()
if (isDev) {
const tags = await fs.readFile('./devTags.json', 'utf8')
await fs.writeFile('./tags.json', tags)
} else {
const tags = await got.get('https://get.coollabs.io/coolify/service-tags.json').text()
await fs.writeFile('/app/tags.json', tags)
}
} catch (error) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long