mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix: code review changes
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
services:
|
services:
|
||||||
doublezero:
|
doublezero:
|
||||||
restart: always
|
restart: always
|
||||||
image: liltechnomancer/double-zero:latest
|
image: liltechnomancer/double-zero:0.2.1
|
||||||
ports:
|
ports:
|
||||||
- 4000:4000
|
- ${DOUBLEZERO_PORT}
|
||||||
networks:
|
networks:
|
||||||
- dokploy-network
|
- dokploy-network
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -3,16 +3,19 @@ import {
|
|||||||
generateRandomDomain,
|
generateRandomDomain,
|
||||||
type Template,
|
type Template,
|
||||||
type Schema,
|
type Schema,
|
||||||
|
generateBase64,
|
||||||
} from "../utils";
|
} from "../utils";
|
||||||
|
|
||||||
export function generate(schema: Schema): Template {
|
export function generate(schema: Schema): Template {
|
||||||
const mainServiceHash = generateHash(schema.projectName);
|
const mainServiceHash = generateHash(schema.projectName);
|
||||||
const randomDomain = generateRandomDomain(schema);
|
const randomDomain = generateRandomDomain(schema);
|
||||||
|
const secretKeyBase = generateBase64(64);
|
||||||
|
|
||||||
const envs = [
|
const envs = [
|
||||||
`DOUBLEZERO_HOST=${randomDomain}`,
|
`DOUBLEZERO_HOST=${randomDomain}`,
|
||||||
"DOUBLEZERO_PORT=4000",
|
"DOUBLEZERO_PORT=4000",
|
||||||
`HASH=${mainServiceHash}`,
|
`HASH=${mainServiceHash}`,
|
||||||
"SECRET_KEY_BASE=",
|
`SECRET_KEY_BASE=${secretKeyBase}`,
|
||||||
"AWS_ACCESS_KEY_ID=",
|
"AWS_ACCESS_KEY_ID=",
|
||||||
"AWS_SECRET_ACCESS_KEY=",
|
"AWS_SECRET_ACCESS_KEY=",
|
||||||
"AWS_REGION=",
|
"AWS_REGION=",
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ export const templates: TemplateData[] = [
|
|||||||
{
|
{
|
||||||
id: 'doublezero',
|
id: 'doublezero',
|
||||||
name: 'Double Zero',
|
name: 'Double Zero',
|
||||||
version: 'v0.0',
|
version: 'v0.2.1',
|
||||||
description: '00 is a self hostable SES dashboard for sending and monitoring emails with AWS',
|
description: '00 is a self hostable SES dashboard for sending and monitoring emails with AWS',
|
||||||
logo: 'doublezero.svg',
|
logo: 'doublezero.svg',
|
||||||
links: {
|
links: {
|
||||||
|
|||||||
Reference in New Issue
Block a user