Compare commits
2 Commits
8940810ac6
...
76801e9f64
Author | SHA1 | Date | |
---|---|---|---|
76801e9f64 | |||
242bfa6a99 |
@ -2,9 +2,6 @@ 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,6 +48,24 @@ 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
|
# The exchange we use for using the correct API (BINANCE or BITPANDA)
|
||||||
STOCK_EXCHANGE="BINANCE"
|
STOCK_EXCHANGE="BITPANDA"
|
||||||
|
|
||||||
# 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,30 +7,34 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime
|
- ./dabo:/dabo:ro
|
||||||
|
- ./data:/dabo/htdocs:rw
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
networks:
|
networks:
|
||||||
- dabo--network
|
- dabo--network
|
||||||
|
|
||||||
|
|
||||||
dabo.dedyn.io:
|
dabo-web:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./htdocs:/usr/share/nginx/html:ro
|
- ./data:/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.rule=Host(`dabo.ds9.dedyn.io`)
|
- traefik.http.routers.dabo-web.rule=Host(`dabo.ds9.dedyn.io`)
|
||||||
- traefik.http.routers.dabo.entrypoints=https
|
- traefik.http.routers.dabo-web.entrypoints=https
|
||||||
- traefik.http.routers.dabo.tls=true
|
- traefik.http.routers.dabo-web.tls=true
|
||||||
# Proxy to service-port
|
# Proxy to service-port
|
||||||
- traefik.http.services.dabo.loadbalancer.server.port=80
|
- traefik.http.services.dabo-web.loadbalancer.server.port=80
|
||||||
- traefik.http.routers.dabo.service=dabo-ds9
|
- traefik.http.routers.dabo-web.service=dabo-web
|
||||||
# cert via letsencrypt
|
# cert via letsencrypt
|
||||||
- traefik.http.routers.dabo.tls.certresolver=letsencrypt
|
- traefik.http.routers.dabo-web.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
|
||||||
|
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
sleep 999999999
|
|
||||||
binance-cli $@
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user