42 lines
975 B
YAML
42 lines
975 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
gateway:
|
|
build:
|
|
context: ./gateway
|
|
image: whatsapp-gateway
|
|
container_name: whatsapp-gateway
|
|
restart: always
|
|
ports:
|
|
- "3001:3001" # API Port
|
|
- "3003:3003" # WebSocket Port
|
|
environment:
|
|
- PORT=3001
|
|
- SESSION_ID=default
|
|
- WEBHOOK_URL=https://n8n.ponchitech.com # Example for n8n container
|
|
volumes:
|
|
- ./gateway/auth_info:/app/auth_info # Persist WhatsApp Session
|
|
- ./gateway/gateway.log:/app/gateway.log
|
|
networks:
|
|
- whatsapp-network
|
|
|
|
manager:
|
|
build:
|
|
context: ./manager
|
|
image: whatsapp-manager
|
|
container_name: whatsapp-manager
|
|
restart: always
|
|
ports:
|
|
- "3002:80" # Web Interface
|
|
environment:
|
|
- VITE_API_URL=${VITE_API_URL:-http://localhost:3001}
|
|
- VITE_WS_URL=${VITE_WS_URL:-ws://localhost:3003}
|
|
depends_on:
|
|
- gateway
|
|
networks:
|
|
- whatsapp-network
|
|
|
|
networks:
|
|
whatsapp-network:
|
|
driver: bridge
|