forked from Drakkar-Software/OctoBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (32 loc) · 1.02 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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