-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
162 lines (153 loc) · 4.29 KB
/
compose.yaml
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
---
name: torrust
services:
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ./storage/proxy/webroot:/var/www/html
- ./storage/certbot/etc:/etc/letsencrypt
- ./storage/certbot/lib:/var/lib/letsencrypt
logging:
options:
max-size: "10m"
max-file: "10"
depends_on:
- proxy
proxy:
image: nginx:mainline-alpine
container_name: proxy
restart: unless-stopped
networks:
- frontend_network
- backend_network
ports:
- "80:80"
- "443:443"
volumes:
- ./storage/proxy/webroot:/var/www/html
- ./storage/proxy/etc/nginx-conf:/etc/nginx/conf.d
- ./storage/certbot/etc:/etc/letsencrypt
- ./storage/certbot/lib:/var/lib/letsencrypt
- ./storage/dhparam:/etc/ssl/certs
logging:
options:
max-size: "10m"
max-file: "10"
depends_on:
- index-gui
- index
- tracker
- grafana
index-gui:
image: torrust/index-gui:develop
container_name: index-gui
tty: true
restart: unless-stopped
environment:
- USER_ID=${USER_ID}
- NUXT_PUBLIC_API_BASE=${TORRUST_INDEX_GUI_API_BASE_URL:-http://localhost:3001/v1}
- NITRO_HOST=${NITRO_HOST:-0.0.0.0}
- NITRO_PORT=${NITRO_PORT:-3000}
networks:
- frontend_network
ports:
- 3000:3000
volumes:
- ./storage/index-gui/log:/var/log/torrust/index-gui:Z
logging:
options:
max-size: "10m"
max-file: "10"
depends_on:
- index
- tracker
index:
image: torrust/index:develop
container_name: index
tty: true
restart: unless-stopped
environment:
- USER_ID=${USER_ID}
- TORRUST_INDEX_DATABASE=${TORRUST_INDEX_DATABASE:-sqlite3}
- TORRUST_INDEX_DATABASE_DRIVER=${TORRUST_INDEX_DATABASE_DRIVER:-sqlite3}
- TORRUST_INDEX_CONFIG_OVERRIDE_TRACKER__TOKEN=${TORRUST_INDEX_CONFIG_OVERRIDE_TRACKER__TOKEN:-MyAccessToken}
- TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__USER_CLAIM_TOKEN_PEPPER=${TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__USER_CLAIM_TOKEN_PEPPER:-MaxVerstappenWC2021}
- TORRUST_INDEX_API_CORS_PERMISSIVE=${TORRUST_INDEX_API_CORS_PERMISSIVE:-true}
networks:
- backend_network
ports:
- 3001:3001
volumes:
- ./storage/index/lib:/var/lib/torrust/index:Z
- ./storage/index/log:/var/log/torrust/index:Z
- ./storage/index/etc:/etc/torrust/index:Z
logging:
options:
max-size: "10m"
max-file: "10"
depends_on:
- tracker
grafana:
image: grafana/grafana:11.4.0
container_name: grafana
restart: unless-stopped
environment:
- GF_SECURITY_ADMIN_USER=${GF_SECURITY_ADMIN_USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD:-admin}
networks:
- backend_network
ports:
- "3100:3000"
volumes:
- grafana_data:/var/lib/grafana
depends_on:
- prometheus
prometheus:
image: prom/prometheus:v3.0.1
container_name: prometheus
tty: true
restart: unless-stopped
networks:
- backend_network
ports:
- "9090:9090" # This port should not be exposed to the internet
volumes:
- ./storage/prometheus/etc:/etc/prometheus:Z
logging:
options:
max-size: "10m"
max-file: "10"
depends_on:
- tracker
tracker:
image: torrust/tracker:develop
container_name: tracker
tty: true
restart: unless-stopped
environment:
- USER_ID=${USER_ID}
- TORRUST_TRACKER_DATABASE=${TORRUST_TRACKER_DATABASE:-sqlite3}
- TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER=${TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER:-sqlite3}
- TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN=${TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN:-MyAccessToken}
networks:
- backend_network
ports:
- 6868:6868/udp
- 6969:6969/udp
- 7070:7070
- 1212:1212
volumes:
- ./storage/tracker/lib:/var/lib/torrust/tracker:Z
- ./storage/tracker/log:/var/log/torrust/tracker:Z
- ./storage/tracker/etc:/etc/torrust/tracker:Z
logging:
options:
max-size: "10m"
max-file: "10"
networks:
frontend_network: {}
backend_network: {}
volumes:
mysql_data: {}
grafana_data: {}