generated from jesse-ai/jesse-stack-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (45 loc) · 1.29 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
version: '3.8'
services:
jesse:
image: salehmir/jesse:latest
depends_on:
- db
- jesse-trades-info
environment:
ENV_DATABASES_POSTGRES_HOST: "db"
tty: true
# Inject api credentials from host env (only for live):
# ENV_EXCHANGES_TESTNET_BINANCE_FUTURES_API_KEY: ${ENV_EXCHANGES_TESTNET_BINANCE_FUTURES_API_KEY}
# ENV_EXCHANGES_TESTNET_BINANCE_FUTURES_API_SECRET: ${ENV_EXCHANGES_TESTNET_BINANCE_FUTURES_API_SECRET}
# Inject api credentials from env file (only for live):
# env_file:
# .env
ports:
- 8888:8888
volumes:
- ./jesseData:/home
# Mount the live package as volume (only for live):
# - ./jesse_live-0.0.2-cp39-cp39-manylinux2010_x86_64.whl:/jesse_live-0.0.2-cp39-cp39-manylinux2010_x86_64.whl
jesse-trades-info:
image: jessetradesinfo/jesse-trades-info:v0.2.1
depends_on:
- db
environment:
DB_HOST: db
DB_NAME: jesse_db
DB_USER: jesse_user
DB_PASSWORD: password
DB_PORT: 5432
ports:
- 3000:3000
db:
image: postgres:12-alpine
environment:
POSTGRES_USER: jesse_user
POSTGRES_PASSWORD: password
POSTGRES_DB: jesse_db
POSTGRES_HOST_AUTH_METHOD: password
ports:
- 5432:5432
volumes:
- ./dbData:/var/lib/postgresql/data