Compare commits
No commits in common. "76801e9f648cd2b7ccddc927001d906315522ecb" and "8940810ac6c2ff7638955e04d5f56615a1028c84" have entirely different histories.
76801e9f64
...
8940810ac6
@ -2,6 +2,9 @@ FROM debian:latest
|
|||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get -y install curl && \
|
apt-get -y install curl && \
|
||||||
curl https://gitea.ds9.dedyn.io/olli/debian.ansible.docker/raw/branch/main/build-debian-env.sh >build-debian-env.sh && \
|
curl https://gitea.ds9.dedyn.io/olli/debian.ansible.docker/raw/branch/main/build-debian-env.sh >build-debian-env.sh && \
|
||||||
bash -ex build-debian-env.sh
|
bash -ex build-debian-env.sh && \
|
||||||
|
cd / && \
|
||||||
|
git clone https://gitea.ds9.dedyn.io/olli/dabo.git && \
|
||||||
|
chmod 555 /dabo/dabo-bot.sh /dabo/analyze.sh
|
||||||
ENV LANG en_US.utf8
|
ENV LANG en_US.utf8
|
||||||
ENTRYPOINT ["/dabo/dabo-bot.sh"]
|
ENTRYPOINT ["/dabo/dabo-bot.sh"]
|
||||||
|
18
README.md
18
README.md
@ -48,24 +48,6 @@ Download:
|
|||||||
git clone https://gitea.ds9.dedyn.io/olli/dabo.git
|
git clone https://gitea.ds9.dedyn.io/olli/dabo.git
|
||||||
cd dabo
|
cd dabo
|
||||||
```
|
```
|
||||||
|
|
||||||
Build container:
|
|
||||||
```
|
|
||||||
docker -l warn compose --ansi never build --progress=plain --pull --no-cache --force-rm
|
|
||||||
```
|
|
||||||
|
|
||||||
Run:
|
|
||||||
```
|
|
||||||
docker-compose down # if on old instance is running
|
|
||||||
docker-compose up -d
|
|
||||||
```
|
|
||||||
|
|
||||||
Logs:
|
|
||||||
```
|
|
||||||
docker-compose logs -f
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
bot.sh is the bot that trades and collects the quotes and analyze.sh is the tool with which you can try out strategies with the historical data.
|
bot.sh is the bot that trades and collects the quotes and analyze.sh is the tool with which you can try out strategies with the historical data.
|
||||||
The configuration files are called bot.conf and analyze.conf. analyze.sh also uses bot.conf but its variables are overwritten by analyze.conf if duplicated.
|
The configuration files are called bot.conf and analyze.conf. analyze.sh also uses bot.conf but its variables are overwritten by analyze.conf if duplicated.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
# The exchange we use for using the correct API (BINANCE or BITPANDA)
|
# The exchange we use for using the correct API
|
||||||
STOCK_EXCHANGE="BITPANDA"
|
STOCK_EXCHANGE="BINANCE"
|
||||||
|
|
||||||
# fee per trade in percentage on exchange (taker and maker added)
|
# fee per trade in percentage on exchange (taker and maker added)
|
||||||
FEE="0.4"
|
FEE="0.4"
|
@ -7,34 +7,30 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./dabo:/dabo:ro
|
- /etc/localtime:/etc/localtime
|
||||||
- ./data:/dabo/htdocs:rw
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
networks:
|
networks:
|
||||||
- dabo--network
|
- dabo--network
|
||||||
|
|
||||||
|
|
||||||
dabo-web:
|
dabo.dedyn.io:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/usr/share/nginx/html:ro
|
- ./htdocs:/usr/share/nginx/html:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
- traefik
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
# HTTPS
|
# HTTPS
|
||||||
- traefik.http.routers.dabo-web.rule=Host(`dabo.ds9.dedyn.io`)
|
- traefik.http.routers.dabo.rule=Host(`dabo.ds9.dedyn.io`)
|
||||||
- traefik.http.routers.dabo-web.entrypoints=https
|
- traefik.http.routers.dabo.entrypoints=https
|
||||||
- traefik.http.routers.dabo-web.tls=true
|
- traefik.http.routers.dabo.tls=true
|
||||||
# Proxy to service-port
|
# Proxy to service-port
|
||||||
- traefik.http.services.dabo-web.loadbalancer.server.port=80
|
- traefik.http.services.dabo.loadbalancer.server.port=80
|
||||||
- traefik.http.routers.dabo-web.service=dabo-web
|
- traefik.http.routers.dabo.service=dabo-ds9
|
||||||
# cert via letsencrypt
|
# cert via letsencrypt
|
||||||
- traefik.http.routers.dabo-web.tls.certresolver=letsencrypt
|
- traefik.http.routers.dabo.tls.certresolver=letsencrypt
|
||||||
# activate secHeaders@file
|
|
||||||
- traefik.http.routers.dabo-web.middlewares=secHeaders@file
|
|
||||||
# Traefik network
|
# Traefik network
|
||||||
- traefik.docker.network=traefik
|
- traefik.docker.network=traefik
|
||||||
|
|
||||||
|
4
docker-entrypoint.sh
Executable file
4
docker-entrypoint.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
sleep 999999999
|
||||||
|
binance-cli $@
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user