Browse Source

add docker-compose.yaml and fix some typo

pull/61/head v1.7.1
Dimas Restu H 2 years ago
parent
commit
de149f165f
  1. 22
      docker-compose.yaml
  2. 2
      internal/routines.go

22
docker-compose.yaml

@ -0,0 +1,22 @@
version: '2'
networks:
whatsapp:
driver: bridge
services:
go-whatsapp-multidevice-rest:
build:
context: .
dockerfile: ./Dockerfile
image: 'dimaskiddo/go-whatsapp-multidevice-rest:latest'
container_name: 'go-whatsapp-multidevice-rest'
networks:
- whatsapp
ports:
- 3000:3000
env_file:
- ./.env
volumes:
- ./dbs:/usr/app/go-whatsapp-multidevice-rest/dbs
restart: unless-stopped

2
internal/routines.go

@ -21,7 +21,7 @@ func Routines(cron *cron.Cron) {
// Mask JID for Logging Information // Mask JID for Logging Information
maskJID := realJID[0:len(realJID)-4] + "xxxx" maskJID := realJID[0:len(realJID)-4] + "xxxx"
// Print Log Show Information of Device Chenking
// Print Log Show Information of Device Checking
log.Print(nil).Info("Checking WhatsApp Client for " + maskJID) log.Print(nil).Info("Checking WhatsApp Client for " + maskJID)
// Check WhatsAppClient Registered JID with Authenticated MSISDN // Check WhatsAppClient Registered JID with Authenticated MSISDN

Loading…
Cancel
Save