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

View File

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