forked from Orbiter-Finance/OrbiterModule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-maker.yml
63 lines (59 loc) · 1.67 KB
/
docker-compose-maker.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
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3.8'
networks:
# Specify the network for bridging
app-network:
driver: bridge
services:
backend:
build: ./backend
command: yarn run start
deploy:
resources:
limits:
memory: 15G
environment:
NODE_ENV: 'development'
ORBITER_SCENE: maker # dashboard: only dashboard | maker: only maker service | all
ORBITER_MAKER_PRIVATE_KEYS: '' # {"makerAddress":"private_key"}
PROMETHEUS_ALERTMANAGER: '{"api":"http://alertmanager:9093"}' # {"api":"http://alertmanager:9093"}
DB_HOST: db
TELEGRAM_TOKEN: '${TELEGRAM_TOKEN}'
CHAT_ID: '${CHAT_ID}'
DB_PORT: '${DB_PORT}'
DB_USER: '${DB_USER}'
DB_PASS: '${DB_PASS}'
DB_NAME: '${DB_NAME}'
MAKER_FILE: '${MAKER_FILE}'
RABBIT_MQ: '${RABBIT_MQ}'
QUEUE_NAME: '${QUEUE_NAME}'
NODE_OPTIONS: --max-old-space-size=15360
volumes:
- './backend/logs:/app/logs'
- './backend/runtime:/app/runtime'
- './backend/src/config/chains.json:/app/src/config/chains.json'
# - './backend:/app'
ports:
- '3002:3002'
restart: always
networks:
- app-network
db:
image: mysql:5.7.16
# image: ibex/debian-mysql-server-5.7
# Set mysqld charset
command:
- '--character-set-server=utf8mb4'
- '--collation-server=utf8mb4_unicode_ci'
environment:
MYSQL_ROOT_PASSWORD: '${DB_ROOT_PASS}'
MYSQL_USER: '${DB_USER}'
MYSQL_PASSWORD: '${DB_PASS}'
MYSQL_DATABASE: '${DB_NAME}'
volumes:
- './mysql/data:/var/lib/mysql'
- './mysql/conf.d:/etc/mysql/conf.d'
ports:
- '3307:3306'
restart: always
networks:
- app-network