-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
90 lines (83 loc) · 2.46 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: "3.9"
services:
redis:
image: redis:latest
command: redis-server --save "" --appendonly no
restart: always
influxdb:
image: influxdb:latest
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=passw0rd
- DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG:-crypto-crawler}
- DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET:-coinsignal}
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_TOKEN:-my-t0ken}
volumes:
- "influxdb2_data:/var/lib/influxdb2"
restart: always
coinsignal-frontend:
build:
context: ./
dockerfile: Dockerfile.frontend
image: soulmachine/coinsignal:frontend
ports:
- 3000:3000
environment:
- INFLUXDB_URL=http://influxdb:8086
- INFLUXDB_TOKEN=${INFLUXDB_TOKEN:-my-t0ken}
- INFLUXDB_ORG=${INFLUXDB_ORG:-crypto-crawler}
- INFLUXDB_BUCKET=${INFLUXDB_BUCKET:-coinsignal}
# for development
- GF_SECURITY_ADMIN_USER=${GF_SECURITY_ADMIN_USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD:-passw0rd}
# for production
# - GF_SERVER_DOMAIN=coinsignal.org
# - GF_AUTH_ANONYMOUS_ENABLED=true
# - GF_AUTH_BASIC_ENABLED=false
# - GF_AUTH_DISABLE_LOGIN_FORM=true
volumes:
- "grafana_data:/var/lib/grafana"
depends_on:
- coinsignal-backend
restart: always
carbonbot-trade:
image: soulmachine/carbonbot:latest
command: ["pm2-runtime", "start", "pm2.trade.config.js"]
environment:
- REDIS_URL=redis://redis:6379
depends_on:
- redis
restart: always
carbonbot-misc:
image: soulmachine/carbonbot:misc
environment:
- FULL_NODE_URL # wss://mainnet.infura.io/ws/v3/YOUR-PROJECT-ID
- CMC_API_KEY # Your coinmarketcap API key
- ETHERSCAN_API_KEY # Your etherscan API key
- REDIS_URL=redis://redis:6379
depends_on:
- redis
restart: always
coinsignal-backend:
build:
context: ./
dockerfile: Dockerfile.backend
image: soulmachine/coinsignal:backend
environment:
- REDIS_URL=redis://redis:6379
- INFLUXDB_URL=http://influxdb:8086
- INFLUXDB_TOKEN=my-t0ken
- INFLUXDB_ORG=soulmachine
- INFLUXDB_BUCKET=coinsignal
depends_on:
- carbonbot-trade
- carbonbot-misc
- influxdb
- redis
restart: always
volumes:
influxdb2_data:
driver: local
grafana_data:
driver: local