mirror of
https://github.com/Drakkar-Software/OctoBot.git
synced 2022-03-03 23:52:26 +03:00
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
octobot:
|
|
image: drakkarsoftware/octobot:stable
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.routers.octobot.rule=Host("${HOST}")
|
|
- traefik.http.services.octobot.loadbalancer.server.port=${PORT}
|
|
- traefik.http.routers.octobot.tls=true
|
|
volumes:
|
|
- ./logs:/octobot/logs
|
|
- ./backtesting:/octobot/backtesting
|
|
- ./tentacles:/octobot/tentacles
|
|
- ./user:/octobot/user
|
|
expose:
|
|
- ${PORT}
|
|
restart: always
|
|
|
|
traefik:
|
|
image: traefik:v2.5
|
|
command:
|
|
- "--providers.docker=true"
|
|
- "--providers.docker.exposedbydefault=false"
|
|
- "--entrypoints.web.address=:80"
|
|
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
|
|
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
|
|
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
|
|
- "--entrypoints.websecure.address=:443"
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|