-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (40 loc) · 921 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
39
40
41
42
43
44
45
version: '3'
services:
mongo:
image: mongo:7-jammy
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASS}
volumes:
- ./mongo_data:/data/db
networks:
- whatsnetwork
mongo-express:
image: mongo-express
restart: always
ports:
- 18081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGO_USER}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGO_PASS}
ME_CONFIG_MONGODB_URL: mongodb://${MONGO_USER}:${MONGO_PASS}@mongo:27017/
networks:
- whatsnetwork
whatsbot:
build: .
environment:
- NODE_ENV=production
env_file:
- .env
depends_on:
- mongo
volumes:
- ./wwebjs_auth_sessions:/usr/src/app/wwebjs_auth_sessions
privileged: true
networks:
- whatsnetwork
networks:
whatsnetwork:
driver: bridge