dockerizing
This commit is contained in:
parent
7872d8c926
commit
8940810ac6
@ -7,4 +7,4 @@ RUN apt-get update && \
|
||||
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/bot.sh"]
|
||||
ENTRYPOINT ["/dabo/dabo-bot.sh"]
|
||||
|
@ -7,7 +7,7 @@ g_lockfile
|
||||
|
||||
### CONFIG ###
|
||||
|
||||
BASEPATH=/dabo
|
||||
BASEPATH=/dabo/htdocs
|
||||
g_tries=3
|
||||
g_tries_delay=5
|
||||
|
||||
|
@ -1,7 +1,18 @@
|
||||
|
||||
version: '3.6'
|
||||
services:
|
||||
bot.ds9.dedyn.io:
|
||||
|
||||
dabo-bot:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime
|
||||
networks:
|
||||
- dabo--network
|
||||
|
||||
|
||||
dabo.dedyn.io:
|
||||
image: nginx:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
@ -12,23 +23,23 @@ services:
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
# HTTPS
|
||||
- traefik.http.routers.bot-ds9.rule=Host(`bot.ds9.dedyn.io`) || Host(`autodiscover.ds9.dedyn.io`)
|
||||
- traefik.http.routers.bot-ds9.entrypoints=https
|
||||
- traefik.http.routers.bot-ds9.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.bot-ds9.loadbalancer.server.port=80
|
||||
- traefik.http.routers.bot-ds9.service=bot-ds9
|
||||
- traefik.http.services.dabo.loadbalancer.server.port=80
|
||||
- traefik.http.routers.dabo.service=dabo-ds9
|
||||
# cert via letsencrypt
|
||||
- traefik.http.routers.bot-ds9.tls.certresolver=letsencrypt
|
||||
- traefik.http.routers.dabo.tls.certresolver=letsencrypt
|
||||
# Traefik network
|
||||
- traefik.docker.network=traefik
|
||||
binance-cli:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- BINANCE_API_KEY="docker-compose.override.yml"
|
||||
- BINANCE_API_SECRET="docker-compose.override.yml"
|
||||
|
||||
|
||||
networks:
|
||||
dabo--network:
|
||||
driver: bridge
|
||||
driver_opts:
|
||||
com.docker.network.bridge.name: br-dabo
|
||||
traefik:
|
||||
external: true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user