Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Server Configuration
WUZAPI_PORT=8080
WUZAPI_ADDRESS=0.0.0.0
GO_ENV=dev

# Token for WuzAPI Admin
WUZAPI_ADMIN_TOKEN=1234ABCD
Expand All @@ -21,6 +22,9 @@ WEBHOOK_FORMAT=json
# WuzAPI Session Configuration
SESSION_DEVICE_NAME=WuzAPI

# Adminer Configuration
ADMINER_PORT=8081

# Database configuration
DB_USER=wuzapi
DB_PASSWORD=wuzapi
Expand All @@ -31,5 +35,9 @@ DB_SSLMODE=false
TZ=America/Sao_Paulo

# RabbitMQ configuration Optional
RABBITMQ_URL=amqp://wuzapi:wuzapi@localhost:5672/%2F
RABBITMQ_URL=amqp://wuzapi:wuzapi@localhost:5672/
RABBITMQ_QUEUE=whatsapp_events

# MinIO Configuration
MINIO_ROOT_USER=minioadmin
MINIO_ROOT_PASSWORD=minioadmin
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ files/
wuzapi
.env
.tool-versions
tmp

# Added by Claude Task Master
# Logs
Expand Down
67 changes: 62 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ services:
- TZ=${TZ:-America/Sao_Paulo}
- WEBHOOK_FORMAT=${WEBHOOK_FORMAT:-json}
- SESSION_DEVICE_NAME=${SESSION_DEVICE_NAME:-WuzAPI}
# RabbitMQ configuration Optional
- RABBITMQ_URL=amqp://wuzapi:wuzapi@rabbitmq:5672/
- RABBITMQ_QUEUE=whatsapp_events
- RABBITMQ_URL=${RABBITMQ_URL}
- RABBITMQ_QUEUE=${RABBITMQ_QUEUE:-whatsapp_events}
depends_on:
db:
condition: service_healthy
Expand All @@ -36,8 +35,8 @@ services:
POSTGRES_USER: ${DB_USER:-wuzapi}
POSTGRES_PASSWORD: ${DB_PASSWORD:-wuzapi}
POSTGRES_DB: ${DB_NAME:-wuzapi}
# ports:
# - "${DB_PORT:-5432}:5432" # Uncomment to access the database directly from your host machine.
ports:
- "${DB_PORT:-5432}:5432"
volumes:
- db_data:/var/lib/postgresql/data
networks:
Expand Down Expand Up @@ -70,10 +69,68 @@ services:
retries: 5
restart: always

minio:
image: minio/minio:RELEASE.2025-02-28T09-55-16Z
container_name: minio_s3
restart: unless-stopped
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin}
ports:
- "9000:9000" # Port API S3
- "9001:9001" # Web Console
volumes:
- minio_data:/data
command: server /data --console-address ":9001"
networks:
- wuzapi-network

adminer:
image: adminer
restart: always
ports:
- "${ADMINER_PORT:-8081}:8080"
networks:
- wuzapi-network

webhook-tester:
image: ghcr.io/tarampampam/webhook-tester:latest
container_name: webhook-tester
command: serve
ports:
- "8082:8080"
networks:
- wuzapi-network
restart: unless-stopped

proxy-http:
image: kalaksi/tinyproxy:latest
restart: unless-stopped
environment:
- ALLOW=0.0.0.0/0
networks:
- wuzapi-network
ports:
- "8888:8888"

# --- SOCKS5 Proxy (With Auth) ---
proxy-socks:
image: serjs/go-socks5-proxy
restart: unless-stopped
environment:
- PROXY_USER=wuzapi
- PROXY_PASSWORD=wuzapi
- PROXY_PORT=1080
networks:
- wuzapi-network
ports:
- "1080:1080"

networks:
wuzapi-network:
driver: bridge

volumes:
db_data:
rabbitmq_data:
minio_data:
Loading