-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
269 lines (230 loc) · 6.5 KB
/
docker-compose.yml
File metadata and controls
269 lines (230 loc) · 6.5 KB
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
version: '3.4'
services:
# Peregrine, our discord bot
peregrine:
container_name: peregrine
image: "ghcr.io/langaracpsc/peregrine:latest"
restart: unless-stopped
networks:
- backend
environment:
- DISCORD_BOT_TOKEN
- WATCHTOWER_HTTP_API_TOKEN
# Website
langaracpsc-next:
container_name: website
ports:
- '3200:3000'
image: "ghcr.io/langaracpsc/langaracpsc-next:latest"
restart: unless-stopped
networks:
- backend
# Hackathon Website
lhacks2024:
container_name: lhacks-website
ports:
- '5500:3000'
image: "ghcr.io/langaracpsc/lhacks2024:latest"
restart: unless-stopped
networks:
- backend
# Website API
# THIS IS BROKEN DUE TO CORS
# langaracpsc.webapi:
# container_name: webapi
# image: "ghcr.io/langaracpsc/langaracpsc.webapi:latest"
# depends_on:
# - "postgres_image"
# ports:
# - "8000:8080"
# networks:
# - backend
# env_file:
# - .env
# volumes:
# - ./ExecImages:/app/Images
# environment:
# - HOSTNAME=${PG_HOSTNAME}
# - DATABASE=${PG_DATABASE}
# - USERNAME=${PG_USERNAME}
# - PASSWORD=${PG_PASSWORD}
# - PORT=${PG_PORT}
# - CAL_ID=${CAL_ID}
# Postgres database that backs langaracpsc.webapi
# postgres_image:
# container_name: postgres
# image: postgres:latest
# restart: always
# networks:
# - backend
# volumes:
# - postgres_db:/var/lib/postgres/data
# - ./data/db:/var/lib/postgres/db
# environment:
# - POSTGRES_PASSWORD=${PG_PASSWORD}
# - POSTGRES_USER=${PG_USERNAME}
# notion api
notion-web-api-backend:
container_name: notion-web-api-backend
image: "ghcr.io/langaracpsc/notion-web-api-backend:latest"
restart: "on-failure:3"
volumes:
- "./data/notion-web-api:/data"
environment:
NOTION_API_TOKEN: ${NOTION_API_TOKEN}
API_URL: ${NOTION_API_URL}
notion-web-api-fastapi:
container_name: notion-web-api-fastapi
depends_on:
- notion-web-api-backend
ports:
- '3500:5000'
image: "ghcr.io/langaracpsc/notion-web-api-fastapi:latest"
restart: unless-stopped
volumes:
- "./data/notion-web-api:/data"
environment:
NOTION_API_TOKEN: ${NOTION_API_TOKEN}
API_URL: ${NOTION_API_URL}
# Langara Course API
# PINNED TO LAST COMMIT OF LEGACY VERSION
# DO NOT UPDATE UNTIL DEPENDENCIES ARE
# langara-api-legacy:
# container_name: langaraapi-legacy
# # ports:
# # - '5000:5000'
# image: "ghcr.io/langaracpsc/langaracoursewatcher@sha256:935111ab3b22926a4bbc99b67c440f84e96b537090862493eb4b6e0a45ece066"
# # networks:
# # - backend
# volumes:
# - course_watcher_db:/database
# environment:
# DISCORD_WEBHOOK_URL: ${DISCORD_WEBHOOK_URL}
# # DEBUG_MODE: true
# labels:
# - "com.centurylinklabs.watchtower.enable=false"
# api for the langara watcher
langara-watcher-api:
container_name: langara-watcher-api
ports:
- '5010:8000'
image: "ghcr.io/langaracpsc/langaracoursewatcher-api:latest"
restart: unless-stopped
networks:
- backend
volumes:
- "./data/langara-api:/database"
# environment:
# API_KEY: ${COURSES_API_KEY}
# PYTHONUNBUFFERED: 1
# fetches info from langara websites
langara-watcher-backend:
container_name: langara-watcher-backend
ports:
- '8000:8000'
image: "ghcr.io/langaracpsc/langaracoursewatcher-backend:latest"
restart: unless-stopped
networks:
- backend
volumes:
- ./data/langara-api:/database
# Langara Course Planner
langara-course-planner:
container_name: langara-course-planner
restart: unless-stopped
depends_on:
- "langara-watcher-api"
ports:
- '5002:5000'
image: 'ghcr.io/langaracpsc/langaracourseplanner:latest'
lcsc-links:
container_name: lcsc-links
ports:
- '5020:5000'
image: 'ghcr.io/langaracpsc/links:latest'
restart: unless-stopped
coursys:
container_name: coursys
ports:
- '5030:3000'
image: 'ghcr.io/highfire1/langaracourseplanner:latest'
restart: unless-stopped
# homarr
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
volumes:
# - /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- ./data/homarr/configs:/app/data/configs
- ./data/homarr/icons:/app/public/icons
- ./data/homarr/data:/data
ports:
- '7575:7575'
# === SYSADMIN TOOLS === #
# NGINX manager
nginx-proxy-manager:
container_name: nginx-proxy-manager
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- nginxpm_data:/data
- nginxpm_letsencrypt:/etc/letsencrypt
networks:
- backend
# Portainer, docker container manager
portainer:
container_name: portainer
image: portainer/portainer-ce:latest
ports:
- 9443:9443
volumes:
- portainer_data:/data
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
# 2025-01-14
# TEMPORARILY DISABLED TO DIAGNOSE IF IT IS CAUSING OUR DOCKER CONTAINERS TO CRASH.
# Watchtower keeps images up to date
watchtower:
container_name: watchtower
image: containrrr/watchtower
ports:
- '8080:8080'
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- backend
environment:
# set timezone
- TZ=America/Vancouver
# delete old containers
- WATCHTOWER_CLEANUP=true
# revive containers with updates
- WATCHTOWER_INCLUDE_STOPPED=true
- WATCHTOWER_REVIVE_STOPPED=true
# post updates to logging channel
- WATCHTOWER_NOTIFICATION_URL=${WATCHTOWER_LOG_CHANNEL}
# but not startup messages
- WATCHTOWER_NO_STARTUP_MESSAGE=true
# Use HTTP request to check for an image update
# curl -H "Authorization: Bearer token" localhost:8080/v1/update
- WATCHTOWER_HTTP_API_UPDATE=true
# Set token for HTTP request from .env
- WATCHTOWER_HTTP_API_TOKEN=${WATCHTOWER_HTTP_API_TOKEN}
# Also continue checking for updates automatically (every hour)
- WATCHTOWER_POLL_INTERVAL=3600
- WATCHTOWER_HTTP_API_PERIODIC_POLLS=true
networks:
backend:
driver: bridge
volumes:
postgres_db:
course_watcher_db:
portainer_data:
nginxpm_data:
nginxpm_letsencrypt: