forked from salman0ansari/whatsapp-api-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
38 lines (36 loc) · 939 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '3.8'
services:
mongodb:
container_name: mongodb
image: mongo:latest
restart: unless-stopped
ports:
- 27017:27017
volumes:
- db:/data/db
app:
container_name: api
build:
context: .
dockerfile: Dockerfile
args:
- PORT=${PORT}
depends_on:
- mongodb
restart: unless-stopped
env_file: .env
ports:
- ${PORT}:${PORT}
environment:
- TOKEN=${TOKEN}
- PORT=${PORT}
- MONGODB_ENABLED=${MONGODB_ENABLED}
- MONGODB_URL=mongodb://mongodb:27017
- WEBHOOK_ENABLED=${WEBHOOK_ENABLED}
- WEBHOOK_URL=${WEBHOOK_URL}
- WEBHOOK_BASE64=${WEBHOOK_BASE64}
volumes:
- ./:/home/node/app
- /home/node/app/node_modules/
volumes:
db: