-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (48 loc) · 1.34 KB
/
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
46
47
48
49
50
version: '3.9'
services:
web:
environment:
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- MONGO_HOST=${MONGO_HOST}
- MONGO_PORT=${MONGO_PORT}
- MONGO_DBNAME=${MONGO_DBNAME}
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
- NEMOBOTTOKEN=${NEMOBOTTOKEN}
- BOTGROUP=${BOTGROUP}
- BOTCHANNEL=${BOTCHANNEL}
- TG_MY_ID=${TG_MY_ID}
- NOTIFICATOR_HOST=${NOTIFICATOR_HOST}
- NOTIFICATOR_PORT=${NOTIFICATOR_PORT}
- CALLBACKURL=${CALLBACKURL}
- HUBURL=${HUBURL}
ports:
- ${NOTIFICATOR_PORT}:${NOTIFICATOR_PORT}
image: ar2rworld/nemobot:0.0.1-alpine
pull_policy: always
restart: always
depends_on:
- redis
- mongo
mongo:
image: mongo:4-focal
restart: always
command: mongod --port ${MONGO_PORT}
volumes:
- ${MONGOVOLUMEPATH}:/data/db:rw
- ${MONGOINITDBPATH}:/docker-entrypoint-initdb.d:ro
environment:
- MONGO_INITDB_DATABASE=${MONGO_DBNAME}
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
ports:
- ${MONGO_PORT}:27017
redis:
image: redis:6
restart: always
command: --port ${REDIS_PORT}
volumes:
- ${REDISVOLUMEPATH}:/data
ports:
- ${REDIS_PORT}:6379