Compare commits

..

No commits in common. "76801e9f648cd2b7ccddc927001d906315522ecb" and "8940810ac6c2ff7638955e04d5f56615a1028c84" have entirely different histories.

29 changed files with 19 additions and 34 deletions

View File

@ -2,6 +2,9 @@ FROM debian:latest
RUN apt-get update && \
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 && \
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
ENTRYPOINT ["/dabo/dabo-bot.sh"]

View File

@ -48,24 +48,6 @@ Download:
git clone https://gitea.ds9.dedyn.io/olli/dabo.git
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.
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.

View File

@ -1,6 +1,6 @@
# The exchange we use for using the correct API (BINANCE or BITPANDA)
STOCK_EXCHANGE="BITPANDA"
# The exchange we use for using the correct API
STOCK_EXCHANGE="BINANCE"
# fee per trade in percentage on exchange (taker and maker added)
FEE="0.4"

View File

@ -7,34 +7,30 @@ services:
dockerfile: Dockerfile
restart: unless-stopped
volumes:
- ./dabo:/dabo:ro
- ./data:/dabo/htdocs:rw
- /etc/localtime:/etc/localtime:ro
- /etc/localtime:/etc/localtime
networks:
- dabo--network
dabo-web:
dabo.dedyn.io:
image: nginx:latest
restart: unless-stopped
volumes:
- ./data:/usr/share/nginx/html:ro
- ./htdocs:/usr/share/nginx/html:ro
- /etc/localtime:/etc/localtime:ro
networks:
- traefik
labels:
- traefik.enable=true
# HTTPS
- traefik.http.routers.dabo-web.rule=Host(`dabo.ds9.dedyn.io`)
- traefik.http.routers.dabo-web.entrypoints=https
- traefik.http.routers.dabo-web.tls=true
- traefik.http.routers.dabo.rule=Host(`dabo.ds9.dedyn.io`)
- traefik.http.routers.dabo.entrypoints=https
- traefik.http.routers.dabo.tls=true
# Proxy to service-port
- traefik.http.services.dabo-web.loadbalancer.server.port=80
- traefik.http.routers.dabo-web.service=dabo-web
- traefik.http.services.dabo.loadbalancer.server.port=80
- traefik.http.routers.dabo.service=dabo-ds9
# cert via letsencrypt
- traefik.http.routers.dabo-web.tls.certresolver=letsencrypt
# activate secHeaders@file
- traefik.http.routers.dabo-web.middlewares=secHeaders@file
- traefik.http.routers.dabo.tls.certresolver=letsencrypt
# Traefik network
- traefik.docker.network=traefik

4
docker-entrypoint.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
sleep 999999999
binance-cli $@