Skip to content

Commit

Permalink
fix: update version image alpine and config.ts wppconenct-server
Browse files Browse the repository at this point in the history
  • Loading branch information
renat473 committed Jul 18, 2023
1 parent ce1c715 commit bde1a0a
Show file tree
Hide file tree
Showing 13 changed files with 243 additions and 179 deletions.
4 changes: 2 additions & 2 deletions docker-server-chatwoot/wppconnect-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:lts-alpine3.16 as builder
FROM node:lts-alpine3.18 as builder

ENV PORT=21465

Expand All @@ -15,7 +15,7 @@ COPY ./config.ts /home/node/app/src
RUN yarn install
RUN yarn build

FROM node:lts-alpine3.16
FROM node:lts-alpine3.18
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
WORKDIR /home/node/app
RUN apk add chromium
Expand Down
166 changes: 88 additions & 78 deletions docker-server-chatwoot/wppconnect-server/config.ts
Original file line number Diff line number Diff line change
@@ -1,79 +1,89 @@
export default {
secretKey: 'THISISMYSECURETOKEN',
host: 'http://localhost',
port: '21465',
deviceName: 'WppConnect',
poweredBy: 'WPPConnect-Server',
startAllSession: true,
tokenStoreType: 'file',
maxListeners: 15,
customUserDataDir: './userDataDir/',
webhook: {
url: null,
autoDownload: true,
uploadS3: false,
awsBucketName: null,
readMessage: true,
allUnreadOnStart: false,
listenAcks: true,
onPresenceChanged: true,
onParticipantsChanged: true,
onReactionMessage: true,
onPollResponse: true,
onRevokedMessage: true,
},
archive: {
enable: false,
waitTime: 10,
daysToArchive: 45,
},
log: {
level: 'silly', // Before open a issue, change level to silly and retry a action
logger: ['console', 'file'],
},
createOptions: {
browserArgs: [
'--disable-web-security',
'--no-sandbox',
'--disable-web-security',
'--aggressive-cache-discard',
'--disable-cache',
'--disable-application-cache',
'--disable-offline-load-stale-cache',
'--disk-cache-size=0',
'--disable-background-networking',
'--disable-default-apps',
'--disable-extensions',
'--disable-sync',
'--disable-translate',
'--hide-scrollbars',
'--metrics-recording-only',
'--mute-audio',
'--no-first-run',
'--safebrowsing-disable-auto-update',
'--ignore-certificate-errors',
'--ignore-ssl-errors',
'--ignore-certificate-errors-spki-list',
],
},
mapper: {
enable: false,
prefix: 'tagone-',
},
db: {
mongodbDatabase: 'tokens',
mongodbCollection: '',
mongodbUser: '',
mongodbPassword: '',
mongodbHost: '',
mongoIsRemote: true,
mongoURLRemote: '',
mongodbPort: 27017,
redisHost: 'localhost',
redisPort: 6379,
redisPassword: '',
redisDb: 0,
redisPrefix: 'docker',
},
};

secretKey: 'THISISMYSECURETOKEN',
host: 'http://localhost',
port: '21465',
deviceName: 'WppConnect',
poweredBy: 'WPPConnect-Server',
startAllSession: true,
tokenStoreType: 'file',
maxListeners: 15,
customUserDataDir: './userDataDir/',
webhook: {
url: null,
autoDownload: true,
uploadS3: false,
readMessage: true,
allUnreadOnStart: false,
listenAcks: true,
onPresenceChanged: true,
onParticipantsChanged: true,
onReactionMessage: true,
onPollResponse: true,
onRevokedMessage: true,
onLabelUpdated: true,
onSelfMessage: false,
},
chatwoot: {
sendQrCode: true,
sendStatus: true,
},
archive: {
enable: false,
waitTime: 10,
daysToArchive: 45,
},
log: {
level: 'silly', // Before open a issue, change level to silly and retry a action
logger: ['console', 'file'],
},
createOptions: {
browserArgs: [
'--disable-web-security',
'--no-sandbox',
'--disable-web-security',
'--aggressive-cache-discard',
'--disable-cache',
'--disable-application-cache',
'--disable-offline-load-stale-cache',
'--disk-cache-size=0',
'--disable-background-networking',
'--disable-default-apps',
'--disable-extensions',
'--disable-sync',
'--disable-translate',
'--hide-scrollbars',
'--metrics-recording-only',
'--mute-audio',
'--no-first-run',
'--safebrowsing-disable-auto-update',
'--ignore-certificate-errors',
'--ignore-ssl-errors',
'--ignore-certificate-errors-spki-list',
],
},
mapper: {
enable: false,
prefix: 'tagone-',
},
db: {
mongodbDatabase: 'tokens',
mongodbCollection: '',
mongodbUser: '',
mongodbPassword: '',
mongodbHost: '',
mongoIsRemote: true,
mongoURLRemote: '',
mongodbPort: 27017,
redisHost: 'localhost',
redisPort: 6379,
redisPassword: '',
redisDb: 0,
redisPrefix: 'docker',
},
aws_s3: {
region: 'sa-east-1',
access_key_id: null,
secret_key: null,
defaultBucketName: null,
},
};
2 changes: 1 addition & 1 deletion docker-server-front-dev/wppconnect-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:lts-alpine3.16
FROM node:lts-alpine3.18

ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

Expand Down
4 changes: 2 additions & 2 deletions docker-server-front-vue/wppconnect-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:lts-alpine3.16 as builder
FROM node:lts-alpine3.18 as builder

ENV PORT=21465

Expand All @@ -14,7 +14,7 @@ COPY ./config.ts /home/node/app/src

RUN yarn install

FROM node:lts-alpine3.16
FROM node:lts-alpine3.18
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
WORKDIR /home/node/app
RUN apk add chromium
Expand Down
15 changes: 13 additions & 2 deletions docker-server-front-vue/wppconnect-server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default {
url: null,
autoDownload: true,
uploadS3: false,
awsBucketName: null,
readMessage: true,
allUnreadOnStart: false,
listenAcks: true,
Expand All @@ -21,6 +20,12 @@ export default {
onReactionMessage: true,
onPollResponse: true,
onRevokedMessage: true,
onLabelUpdated: true,
onSelfMessage: false,
},
chatwoot: {
sendQrCode: true,
sendStatus: true,
},
archive: {
enable: false,
Expand Down Expand Up @@ -75,4 +80,10 @@ export default {
redisDb: 0,
redisPrefix: 'docker',
},
};
aws_s3: {
region: 'sa-east-1',
access_key_id: null,
secret_key: null,
defaultBucketName: null,
},
};
6 changes: 3 additions & 3 deletions docker-server-front/wppconnect-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:lts-alpine3.16 as builder
FROM node:lts-alpine3.18 as builder


ENV PORT=21465

RUN apk add wget && \
apk add --no-cache git
Expand All @@ -14,7 +14,7 @@ COPY ./config.ts /home/node/app/src

RUN yarn install

FROM node:lts-alpine3.16
FROM node:lts-alpine3.18
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
WORKDIR /home/node/app
RUN apk add chromium
Expand Down
15 changes: 13 additions & 2 deletions docker-server-front/wppconnect-server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default {
url: null,
autoDownload: true,
uploadS3: false,
awsBucketName: null,
readMessage: true,
allUnreadOnStart: false,
listenAcks: true,
Expand All @@ -21,6 +20,12 @@ export default {
onReactionMessage: true,
onPollResponse: true,
onRevokedMessage: true,
onLabelUpdated: true,
onSelfMessage: false,
},
chatwoot: {
sendQrCode: true,
sendStatus: true,
},
archive: {
enable: false,
Expand Down Expand Up @@ -75,4 +80,10 @@ export default {
redisDb: 0,
redisPrefix: 'docker',
},
};
aws_s3: {
region: 'sa-east-1',
access_key_id: null,
secret_key: null,
defaultBucketName: null,
},
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:lts-alpine3.16 as builder
FROM node:lts-alpine3.18 as builder


ENV PORT=21465

RUN apk add wget && \
apk add --no-cache git
Expand All @@ -14,7 +14,7 @@ COPY ./config.ts /home/node/app/src

RUN yarn install

FROM node:lts-alpine3.16
FROM node:lts-alpine3.18
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
WORKDIR /home/node/app
RUN apk add chromium
Expand Down
15 changes: 13 additions & 2 deletions docker-server-load-balancing-redis/wppconnect-server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default {
url: null,
autoDownload: true,
uploadS3: false,
awsBucketName: null,
readMessage: true,
allUnreadOnStart: false,
listenAcks: true,
Expand All @@ -21,6 +20,12 @@ export default {
onReactionMessage: true,
onPollResponse: true,
onRevokedMessage: true,
onLabelUpdated: true,
onSelfMessage: false,
},
chatwoot: {
sendQrCode: true,
sendStatus: true,
},
archive: {
enable: false,
Expand Down Expand Up @@ -75,4 +80,10 @@ export default {
redisDb: 0,
redisPrefix: 'docker',
},
};
aws_s3: {
region: 'sa-east-1',
access_key_id: null,
secret_key: null,
defaultBucketName: null,
},
};
4 changes: 2 additions & 2 deletions docker-server-load-balancing/wppconnect-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:lts-alpine3.16 as builder
FROM node:lts-alpine3.18 as builder

ENV PORT=21465

Expand All @@ -14,7 +14,7 @@ COPY ./config.ts /home/node/app/src

RUN yarn install

FROM node:lts-alpine3.16
FROM node:lts-alpine3.18
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
WORKDIR /home/node/app
RUN apk add chromium
Expand Down
Loading

0 comments on commit bde1a0a

Please sign in to comment.