37 lines
991 B
YAML
37 lines
991 B
YAML
# ===== Development compose =====
|
|
# Bind-mount host source into the container; tsx watch restarts the Node
|
|
# process on file change — no image rebuild needed.
|
|
# docker compose -f docker-compose.dev.yml up -d --build
|
|
# Then edit src/* and watch the process reload.
|
|
# Host port 5247 (5244-5246 taken; 8080 taken by DSM nginx).
|
|
|
|
services:
|
|
telegram-bot:
|
|
build:
|
|
context: .
|
|
target: development
|
|
container_name: digikedai-bot-dev
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
NODE_ENV: development
|
|
PORT: "8080"
|
|
POSTGRES_HOST: mem0-postgres # default; override in .env if needed
|
|
LLM_BASE_URL: http://litellm:4000/v1
|
|
ports:
|
|
- "5247:8080"
|
|
volumes:
|
|
- ./src:/app/src
|
|
- ./package.json:/app/package.json
|
|
- ./tsconfig.json:/app/tsconfig.json
|
|
command: npm run dev
|
|
networks:
|
|
- mem0_net
|
|
- bridge_hoelee
|
|
|
|
networks:
|
|
mem0_net:
|
|
external: true
|
|
bridge_hoelee:
|
|
external: true |