primer commit
This commit is contained in:
38
docker-compose.yml
Normal file
38
docker-compose.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
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=http://n8n:5678/webhook/whatsapp # 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
|
||||
depends_on:
|
||||
- gateway
|
||||
networks:
|
||||
- whatsapp-network
|
||||
|
||||
networks:
|
||||
whatsapp-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user