forked from hansputera/treasent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Hanif Dwy Putra S <[email protected]>
- Loading branch information
1 parent
3c96811
commit 08cb109
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM node:23-alpine3.19 | ||
|
||
RUN apk add --no-cache bash git curl | ||
|
||
RUN mkdir -p /app | ||
COPY . /app | ||
WORKDIR /app | ||
|
||
RUN npm install -g pnpm | ||
RUN pnpm install | ||
|
||
EXPOSE 3001 | ||
CMD ["pnpm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
services: | ||
treasent: | ||
build: . | ||
image: hansputera/treasent-bot-whatsapp:latest | ||
ports: | ||
- 5000:3001 | ||
env_file: | ||
- .env | ||
environment: | ||
- REDIS_URL=redis://:thisisveryshittypasswordfuckinghahahahaha010101@redis-server:6379 | ||
networks: | ||
- treasent-service | ||
volumes: | ||
- whatsapp_sessions:/app/sessions:rw | ||
# Redis Server | ||
redis-server: | ||
image: redis:7.4-rc-alpine | ||
restart: always | ||
ports: | ||
- "5001:6379" | ||
environment: | ||
- REDIS_PASSWORD=thisisveryshittypasswordfuckinghahahahaha010101 | ||
- REDIS_PORT=6379 | ||
- REDIS_DATABASES=16 | ||
networks: | ||
- treasent-service | ||
volumes: | ||
whatsapp_sessions: | ||
networks: | ||
treasent-service: | ||
attachable: true | ||
external: true |