fix: Testing ENV Variables

This commit is contained in:
DrMxrcy
2024-11-13 05:06:42 -05:00
parent 8900e30ae7
commit 06af2042ee
2 changed files with 17 additions and 8 deletions

View File

@@ -9,14 +9,18 @@ import {
export function generate(schema: Schema): Template {
const mainDomain = generateRandomDomain(schema);
const apiKey = generateBase64(48);
const postgresPassword = generateBase64(24);
const jwtSecret = generateBase64(24);
const encryptionKey = generateBase64(12);
const redisPassword = generateBase64(24);
const apiKey = Array.from({length: 64}, () =>
Math.floor(Math.random() * 16).toString(16)).join('');
const postgresPassword = Array.from({length: 32}, () =>
Math.floor(Math.random() * 16).toString(16)).join('');
const jwtSecret = Array.from({length: 32}, () =>
Math.floor(Math.random() * 16).toString(16)).join('');
const encryptionKey = Array.from({length: 16}, () =>
Math.floor(Math.random() * 16).toString(16)).join('');
const postgresUser = "activepieces";
const postgresDb = "activepieces";
const redisPassword = generateBase64(24);
const domains: DomainSchema[] = [
{

View File

@@ -1,6 +1,13 @@
version: "3.8"
services:
base: &base
image: chatwoot/chatwoot:v3.14.1
networks:
- dokploy-network
volumes:
- storage_data:/app/storage
postgres:
image: postgres:12
networks:
@@ -33,9 +40,7 @@ services:
restart: always
setup:
image: chatwoot/chatwoot:v3.14.1
networks:
- dokploy-network
<<: *base
environment:
- NODE_ENV=production
- RAILS_ENV=production