-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (45 loc) · 1.21 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
version: "3"
services:
mlsb-bot:
environment:
- ADMIN=$ADMIN
- DBNAME=$DBNAME
- DBPW=$DBPW
- DBUSER=$DBUSER
- LOCAL=$LOCAL
- MONGODB_URI=$MONGODB_URI
- PAGE_ACCESS_TOKEN=$PAGE_ACCESS_TOKEN
- PASSWORD=$PASSWORD
- PLATFORM=$PLATFORM
- URI=$URI
- VERIFY_TOKEN=$VERIFY_TOKEN
restart: always
build: .
ports:
- 8081:8081
volumes:
- .:/app
depends_on:
- postgres
- redis
command: >
gunicorn -b 0.0.0.0:8081
--access-logfile -
--reload
"runserver:app"
mongodb:
image: mongo:latest
container_name: "mongodb"
environment:
- MONGO_INITDB_ROOT_USERNAME=$DBUSER
- MONGO_INITDB_ROOT_PASSWORD=$DBPW
- MONGO_INITDB_DATABASE=$DBNAME
- MONGO_DATA_DIR=/usr/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- 'mongodb:/data'
ports:
- 27017:27017
command: mongod --smallfiles --logpath=/dev/null # --quiet
volumes:
name: mongodb