wapp
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
services:
|
||||
whatjs:
|
||||
wapp:
|
||||
user: "1000:1000"
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: whatjs
|
||||
container_name: wapp
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- traefik_net
|
||||
environment:
|
||||
# Server configuration
|
||||
- PORT=3000
|
||||
- PORT=3001
|
||||
- NODE_ENV=production
|
||||
|
||||
# API Security
|
||||
@@ -26,8 +26,8 @@ services:
|
||||
- REJECT_CALLS=false
|
||||
|
||||
# WebSocket URL for QR page (set this to your public URL when using Traefik)
|
||||
# Example: - WS_URL=https://whatjs.yourdomain.com
|
||||
- WS_URL=
|
||||
# Example: - WS_URL=https://wapp.appmodel.nl
|
||||
- WS_URL=https://wapp.appmodel.nl
|
||||
|
||||
# CORS configuration
|
||||
- CORS_ORIGIN=*
|
||||
@@ -39,17 +39,17 @@ services:
|
||||
- whatsapp-cache:/app/.wwebjs_cache
|
||||
- whatsapp-auth:/app/.wwebjs_auth
|
||||
|
||||
# Uncomment labels below when ready to use Traefik
|
||||
# labels:
|
||||
# - "traefik.enable=true"
|
||||
# - "traefik.http.routers.whatjs.rule=Host(`whatjs.yourdomain.com`)"
|
||||
# - "traefik.http.routers.whatjs.entrypoints=websecure"
|
||||
# - "traefik.http.routers.whatjs.tls=true"
|
||||
# - "traefik.http.routers.whatjs.tls.certresolver=letsencrypt"
|
||||
# - "traefik.http.services.whatjs.loadbalancer.server.port=3000"
|
||||
# Uncomment labels below when ready to use Traefik
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.wapp.rule=Host(`wapp.appmodel.nl`)"
|
||||
- "traefik.http.routers.wapp.entrypoints=websecure"
|
||||
- "traefik.http.routers.wapp.tls=true"
|
||||
- "traefik.http.routers.wapp.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.wapp.loadbalancer.server.port=3001"
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/health', (r) => { process.exit(r.statusCode === 200 ? 0 : 1); }).on('error', () => process.exit(1));"]
|
||||
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3001/health', (r) => { process.exit(r.statusCode === 200 ? 0 : 1); }).on('error', () => process.exit(1));"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user