mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(template): Peppermint Naming
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
peppermint_postgres:
|
peppermint-postgres:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- dokploy-network
|
- dokploy-network
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql/data
|
- peppermint-postgres-data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: peppermint
|
POSTGRES_USER: peppermint
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
@@ -18,19 +18,23 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
peppermint:
|
peppermint-app:
|
||||||
image: pepperlabs/peppermint:latest
|
image: pepperlabs/peppermint:latest
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- dokploy-network
|
- dokploy-network
|
||||||
depends_on:
|
depends_on:
|
||||||
peppermint_postgres:
|
peppermint-postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
DB_USERNAME: "peppermint"
|
DB_USERNAME: "peppermint"
|
||||||
DB_PASSWORD: ${POSTGRES_PASSWORD}
|
DB_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
DB_HOST: "peppermint_postgres"
|
DB_HOST: "peppermint-postgres"
|
||||||
SECRET: ${SECRET}
|
SECRET: ${SECRET}
|
||||||
|
|
||||||
|
networks:
|
||||||
|
dokploy-network:
|
||||||
|
external: true
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
peppermint-postgres-data:
|
||||||
@@ -8,27 +8,24 @@ import {
|
|||||||
} from "../utils";
|
} from "../utils";
|
||||||
|
|
||||||
export function generate(schema: Schema): Template {
|
export function generate(schema: Schema): Template {
|
||||||
// Generate domains and secrets
|
|
||||||
const mainDomain = generateRandomDomain(schema);
|
const mainDomain = generateRandomDomain(schema);
|
||||||
const apiDomain = generateRandomDomain(schema);
|
const apiDomain = generateRandomDomain(schema);
|
||||||
const postgresPassword = generatePassword();
|
const postgresPassword = generatePassword();
|
||||||
const secret = generateBase64(32);
|
const secret = generateBase64(32);
|
||||||
|
|
||||||
// Configure domain routing
|
|
||||||
const domains: DomainSchema[] = [
|
const domains: DomainSchema[] = [
|
||||||
{
|
{
|
||||||
host: mainDomain,
|
host: mainDomain,
|
||||||
port: 3000,
|
port: 3000,
|
||||||
serviceName: "peppermint",
|
serviceName: "peppermint-app",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
host: apiDomain,
|
host: apiDomain,
|
||||||
port: 5003,
|
port: 5003,
|
||||||
serviceName: "peppermint",
|
serviceName: "peppermint-app",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
// Set environment variables
|
|
||||||
const envs = [
|
const envs = [
|
||||||
`MAIN_DOMAIN=${mainDomain}`,
|
`MAIN_DOMAIN=${mainDomain}`,
|
||||||
`API_DOMAIN=${apiDomain}`,
|
`API_DOMAIN=${apiDomain}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user