-
Notifications
You must be signed in to change notification settings - Fork 747
/
docker-compose.yaml
86 lines (82 loc) · 2.45 KB
/
docker-compose.yaml
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
version: "3.9"
services:
pycrypto:
build:
context: .
tty: true
container_name: pycrypto
volumes:
- ./market/template/config.json:/app/config.json
- ./market/template/pycryptobot.log:/app/pycryptobot.log
- ./market/template/graphs:/app/graphs
- /etc/localtime:/etc/localtime:ro
environment:
- PYTHONUNBUFFERED=1
deploy:
restart_policy:
condition: on-failure
# Bot can also be setup to use Scanner/Screener with this block
# pycryptobot:
# image: ghcr.io/whittlem/pycryptobot/pycryptobot:latest
# container_name: pycryptobot
# volumes:
# - ./market/binance.key:/app/keys/binance.key:ro
# - ./market/config.json:/app/config.json
# - ./market/pycryptobot.log:/app/pycryptobot.log
# - ./market/screener.json:/app/screener.json
# - ./market:/app/telegram_data
# - ./market/graphs:/app/graphs
# - /etc/timezone:/etc/timezone:ro
# - /etc/localtime:/etc/localtime:ro
# environment:
# - PYTHONUNBUFFERED=1
# entrypoint: ["python3", "-u", "telegram_bot.py"]
# restart: always
# Different markets can be specified as below
#
# BTCEUR:
# build:
# context: .
# container_name: BTCEUR
# volumes:
# - ./market/BTCEUR/config.json:/app/config.json
# - ./market/BTCEUR/pycryptobot.log:/app/pycryptobot.log
# - ./market/BTCEUR/graphs:/app/graphs
# - /etc/localtime:/etc/localtime:ro
# environment:
# - PYTHONUNBUFFERED=1
# deploy:
# restart_policy:
# condition: on-failure
#
# ETHEUR:
# build:
# context: .
# container_name: ETHEUR
# volumes:
# - ./market/ETHEUR/config.json:/app/config.json
# - ./market/ETHEUR/pycryptobot.log:/app/pycryptobot.log
# - ./market/ETHEUR/graphs:/app/graphs
# - /etc/localtime:/etc/localtime:ro
# environment:
# - PYTHONUNBUFFERED=1
# deploy:
# restart_policy:
# condition: on-failure
#
# Uncomment to build and run Web Portal
# pycrypto-websvc:
# build:
# context: .
# dockerfile: Dockerfile-websvc
# container_name: pycrypto-websvc
# volumes:
# - ./market/:/app/market
# - /etc/localtime:/etc/localtime:ro
# ports:
# - 5000:5000
# environment:
# - PYTHONUNBUFFERED=1
# deploy:
# restart_policy:
# condition: on-failure