Skip to content

Commit

Permalink
feat(*): added Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Hanif Dwy Putra S <[email protected]>
  • Loading branch information
hansputera committed Nov 3, 2024
1 parent 3c96811 commit 08cb109
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
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"]
32 changes: 32 additions & 0 deletions docker-compose.yaml
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

0 comments on commit 08cb109

Please sign in to comment.