-
Notifications
You must be signed in to change notification settings - Fork 69
/
docker-compose.yml
44 lines (41 loc) · 966 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
version: "3"
services:
pallasbot:
container_name: pallasbot
image: misteo/pallas-bot
restart: always
ports:
- "8080:8080"
env_file:
- ".env.prod"
environment:
TZ: Asia/Shanghai
ENVIRONMENT: prod
APP_MODULE: bot:app
MAX_WORKERS: 1
WAIT_HOSTS: mongodb:27017
TIMEOUT: 480
networks:
- pallasbot
volumes:
- /opt/dockerstore/pallas-bot/resource/:/app/resource
- /opt/dockerstore/pallas-bot/accounts/:/app/accounts
- /opt/dockerstore/pallas-bot/.env.prod:/app/.env.prod
depends_on:
- mongodb
mongodb:
container_name: mongodb
image: mongo:4.4.19-focal
restart: always
ports:
- "27017:27017"
environment:
TZ: Asia/Shanghai
wiredTigerCacheSizeGB: 1.5
networks:
- pallasbot
volumes:
- /opt/dockerstore/mongo/data:/data/db
- /opt/dockerstore/mongo/logs:/var/log/mongodb
networks:
pallasbot: