fix: smtp config

This commit is contained in:
Mohamed Marrouchi
2024-09-18 17:33:12 +01:00
parent 549b946452
commit cc36b16d31
21 changed files with 157 additions and 213 deletions

View File

@@ -30,13 +30,15 @@ MONGO_PASSWORD=dev_only
MONGO_URI=mongodb://${MONGO_USER}:${MONGO_PASSWORD}@mongo:27017/
MONGO_DB=hexabot
# SMTP Config for local dev env
# SMTP Config (for local dev env, use smtp4dev by doing `make start SMTP4DEV=1`)
APP_SMTP_4_DEV_PORT=9002
EMAIL_SMTP_ENABLED=false
EMAIL_SMTP_HOST=smtp4dev
EMAIL_SMTP_PORT=25
EMAIL_SMTP_SECURE=false
EMAIL_SMTP_USER=dev_only
EMAIL_SMTP_PASS=dev_only
EMAIL_SMTP_FROM=noreply@example.com
# NLU Server
AUTH_TOKEN=token123

View File

@@ -17,21 +17,6 @@ services:
#- ../api/node_modules:/app/node_modules
command: ["npm", "run", "start:debug"]
smtp4dev:
image: rnwood/smtp4dev:v3
restart: always
ports:
- ${APP_SMTP_4_DEV_PORT}:80
- "25:25"
- "143:143"
volumes:
- smtp4dev-data:/smtp4dev
environment:
- ServerOptions__HostName=smtp4dev
- ServerOptions__LockSettings=true
networks:
- db-network
mongo-express:
container_name: mongoUi
image: mongo-express:1-20
@@ -52,6 +37,3 @@ services:
- ../widget/src:/app/src
ports:
- ${APP_WIDGET_PORT}:5173
volumes:
smtp4dev-data:

View File

@@ -0,0 +1,20 @@
version: "3.8"
services:
smtp4dev:
image: rnwood/smtp4dev:v3
restart: always
ports:
- ${APP_SMTP_4_DEV_PORT}:80
- "25:25"
- "143:143"
volumes:
- smtp4dev-data:/smtp4dev
environment:
- ServerOptions__HostName=smtp4dev
- ServerOptions__LockSettings=true
networks:
- app-network
volumes:
smtp4dev-data: