-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
134 lines (124 loc) · 4.75 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: "3"
networks:
proxynet:
driver: bridge
webgateway:
external: true
services:
profit-trailer:
image: helmi74/pd-profit-trailer:latest
restart: always
networks:
- proxynet
ports:
- 8081
volumes:
- ./profit-trailer/application.properties:/profit-trailer/application.properties
- ./profit-trailer/data:/profit-trailer/data
- ./profit-trailer/logs:/profit-trailer/logs
labels:
- "traefik.enable=true"
- "traefik.docker.network=${COMPOSE_PROJECT_NAME}_proxynet" # you need to change pd_ to something else if you use a different stack name when starting
- "traefik.port=8081"
- "traefik.backend=profit-trailer"
- "traefik.backend.loadbalancer.method=drr"
- "traefik.frontend.rule=Host:bot1.exampledomain.com" # change this to your hostname. That hostname needs to point to your server
- "traefik.domain=bot1.exampledomain.com" # change this to your hostname. That hostname needs to point to your server
pt-feeder:
image: helmi74/pd-pt-feeder-beta:latest
restart: always
networks:
- proxynet
volumes:
- ./profit-trailer/application.properties:/profit-trailer/application.properties
- ./pt-feeder/config:/pt-feeder/config
- ./pt-feeder/database:/pt-feeder/database
- ./pt-feeder/logs:/pt-feeder/logs
depends_on:
- profit-trailer
pt-tracker:
image: helmi74/pd-pt-tracker:latest
restart: always
networks:
- proxynet
ports:
- 3000
volumes:
- ./pt-tracker/PtTracker.json:/pt-tracker/PtTracker.json
- ./pt-tracker/pttracker.db:/pt-tracker/pttracker.db
- ./pt-tracker/pttracker.db-journal:/pt-tracker/pttracker.db-journal
- ./pt-tracker/PtTracker.log:/pt-tracker/PtTracker.log
depends_on:
- profit-trailer
labels:
- "traefik.enable=true"
- "traefik.docker.network=${COMPOSE_PROJECT_NAME}_proxynet" # you need to change pd_ to something else if you use a different stack name when starting
- "traefik.port=3000"
- "traefik.backend=pt-tracker"
- "traefik.backend.loadbalancer.method=drr"
- "traefik.frontend.rule=Host:bot1t.exampledomain.com" # change this to your hostname. That hostname needs to point to your server
- "traefik.domain=bot1t.exampledomain.com" # change this to your hostname. That hostname needs to point to your server
pt-notifications:
image: helmi74/pd-pt-notifications:latest
restart: always
networks:
- proxynet
volumes:
- ./pt-notifications/settings.properties:/pt-notifications/settings.properties
- ./pt-notifications/database/orders.db:/pt-notifications/orders.db
- ./pt-notifications/logs:/pt-notifications/logs
depends_on:
- profit-trailer
# pt-defender:
# image: helmi74/pd-pt-defender:latest
# volumes:
# - ./pt-defender:/headless/.config/PTDefender
# - ./profit-trailer:/mnt/profit-trailer
# ports:
# - 6901
# restart: always
# networks:
# - proxynet
# environment:
# - "VNC_PW=ENTERYOURPASSWORDHERE"
# labels:
# - "traefik.enable=true"
# - "traefik.docker.network=${COMPOSE_PROJECT_NAME}_proxynet" # you need to change pd_ to something else if you use a different stack name when starting
# - "traefik.port=6901"
# - "traefik.backend=pt-defender"
# - "traefik.backend.loadbalancer.method=drr"
# - "traefik.frontend.rule=Host:bot1d.exampledomain.com" # change this to your hostname. That hostname needs to point to your server
# - "traefik.domain=bot1d.exampledomain.com" # change this to your hostname. That hostname needs to point to your server
loadbalancer:
image: traefik
restart: always
command:
- "--loglevel=WARN"
- "--api"
# - "--entrypoints=Name:http Address::80"
- "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https"
- "--entrypoints=Name:https Address::443 TLS"
- "--defaultentrypoints=http,https"
- "--acme"
- "--acme.storage=/etc/acme/acme.json"
- "--acme.entryPoint=https"
- "--acme.onHostRule=true"
- "--acme.httpChallenge"
- "--acme.httpChallenge.entryPoint=http"
## comment out the next line to request a real certificate
# - "--acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory" # uncomment this line if you want to test the lets encrypt certificate generation
- "--docker"
- "--docker.exposedByDefault=false"
- "--docker.endpoint=unix:///var/run/docker.sock"
- "--docker.watch"
ports:
- 80:80
- 443:443
- 9090:8080
volumes:
- ./acme/:/etc/acme/
- /var/run/docker.sock:/var/run/docker.sock
networks:
- proxynet
- webgateway