mirror of
https://github.com/Dokploy/templates.git
synced 2026-06-15 20:25:24 +02:00
feat: add wuzapi template (#679)
* feat: add wuzapi template * chore: remove temporary meta_entry.json * fix(wuzapi): remove explicit networks and simplify depends_on for Dokploy compatibility * fix(wuzapi): remove invalid config.mounts from template.toml * Update Docker images for wuzapi and PostgreSQL fixed the version of the wuzapi docker image.
This commit is contained in:
36
blueprints/wuzapi/docker-compose.yml
Normal file
36
blueprints/wuzapi/docker-compose.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
wuzapi-server:
|
||||
image: asternic/wuzapi:sha-30c1805
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 8080
|
||||
environment:
|
||||
- WUZAPI_ADMIN_TOKEN=${WUZAPI_ADMIN_TOKEN}
|
||||
- WUZAPI_GLOBAL_ENCRYPTION_KEY=${WUZAPI_GLOBAL_ENCRYPTION_KEY}
|
||||
- DB_USER=${DB_USER:-wuzapi}
|
||||
- DB_PASSWORD=${DB_PASSWORD:-wuzapi}
|
||||
- DB_NAME=${DB_NAME:-wuzapi}
|
||||
- DB_HOST=db
|
||||
- DB_PORT=5432
|
||||
- TZ=${TZ:-UTC}
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: ${DB_USER:-wuzapi}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD:-wuzapi}
|
||||
POSTGRES_DB: ${DB_NAME:-wuzapi}
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $${DB_USER:-wuzapi}"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
20
blueprints/wuzapi/template.toml
Normal file
20
blueprints/wuzapi/template.toml
Normal file
@@ -0,0 +1,20 @@
|
||||
[variables]
|
||||
main_domain = "${domain}"
|
||||
admin_token = "${password:32}"
|
||||
encryption_key = "${password:32}"
|
||||
db_user = "wuzapi"
|
||||
db_password = "${password:32}"
|
||||
db_name = "wuzapi"
|
||||
|
||||
[config]
|
||||
[[config.domains]]
|
||||
serviceName = "wuzapi-server"
|
||||
port = 8080
|
||||
host = "${main_domain}"
|
||||
|
||||
[config.env]
|
||||
WUZAPI_ADMIN_TOKEN = "${admin_token}"
|
||||
WUZAPI_GLOBAL_ENCRYPTION_KEY = "${encryption_key}"
|
||||
DB_USER = "${db_user}"
|
||||
DB_PASSWORD = "${db_password}"
|
||||
DB_NAME = "${db_name}"
|
||||
BIN
blueprints/wuzapi/wuzapi.png
Normal file
BIN
blueprints/wuzapi/wuzapi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
18
meta.json
18
meta.json
@@ -6470,6 +6470,24 @@
|
||||
"cms"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "wuzapi",
|
||||
"name": "WuzAPI",
|
||||
"version": "v1.0.0",
|
||||
"description": "A RESTful API service for WhatsApp with multiple device support and concurrent sessions.",
|
||||
"logo": "wuzapi.png",
|
||||
"links": {
|
||||
"github": "https://github.com/asternic/wuzapi",
|
||||
"website": "https://www.wuzapi.app/",
|
||||
"docs": "https://github.com/asternic/wuzapi/blob/main/README.md"
|
||||
},
|
||||
"tags": [
|
||||
"api",
|
||||
"whatsapp",
|
||||
"messaging",
|
||||
"automation"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "xsshunter",
|
||||
"name": "XSSHunter",
|
||||
|
||||
Reference in New Issue
Block a user