-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
204 lines (192 loc) · 5.92 KB
/
docker-compose.yml
File metadata and controls
204 lines (192 loc) · 5.92 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
services:
core:
hostname: core
build:
context: .
dockerfile: Dockerfile
args:
# [Choice] Node.js version: 22, 24
VARIANT: 24
# On Linux, you may need to update USER_UID and USER_GID below if not your local UID is not 1000.
USER_UID: 1000
USER_GID: 1000
environment:
# sane default to allow the server to bind to any interface in the container
HOSTNAME: localhost
# H5P storage using s3 api via garage
H5P_FILE_STORAGE_HOST: http://s3.garage.localhost:3900
H5P_INTEGRATION_URL: http://h5p-items.web.garage.localhost:3902/h5p-integration/
# endpoint of the nudenet model
IMAGE_CLASSIFIER_API: http://nudenet:8080/infer
# the DB config is set by the "db" service below
DB_CONNECTION: postgres://graasper:graasper@db:5432/graasp
# the Etherpad config is set by the "etherpad" service below
ETHERPAD_URL: http://etherpad:9001
ETHERPAD_PUBLIC_URL: http://localhost:9001
ETHERPAD_COOKIE_DOMAIN: localhost
# Api key is set by ./etherpad/devApiKey.txt
ETHERPAD_API_KEY: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
# the Redis config is set by the "redis" service below
REDIS_CONNECTION: redis://redis:6379
# the Mailer config is set by the "mailer" service below
MAILER_CONNECTION: smtp://docker:docker@mailer:1025
# the Garage config is set by the "garage" service below
S3_FILE_ITEM_HOST: http://s3.garage.localhost:3900
# file storage options use s3 by default
FILE_STORAGE_TYPE: s3
S3_FILE_ITEM_REGION: garage
S3_FILE_ITEM_BUCKET: file-items
# the Iframely config is set by the "iframely" service below
EMBEDDED_LINK_ITEM_IFRAMELY_HREF_ORIGIN: http://iframely:8061
# Redirection for shortlinks
SHORT_LINK_BASE_URL: http://localhost:3000/short-links
links:
- garage:s3.garage.localhost
volumes:
- ..:/workspace:cached
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
ports:
- 3001:3000
db:
hostname: db
image: postgres:16.11-alpine
restart: on-failure
shm_size: 1g
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
- ./postgresql:/docker-entrypoint-initdb.d
environment:
POSTGRES_DB: docker
POSTGRES_USER: docker
POSTGRES_PASSWORD: docker
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
redis:
hostname: redis
image: redis
restart: on-failure
etherpad:
hostname: etherpad
image: etherpad/etherpad
# start the server with dev API key
# https://hub.docker.com/r/etherpad/etherpad/dockerfile
# https://github.com/ether/etherpad-lite/issues/3849
volumes:
# bind copy the dev API key
- ./etherpad/devApiKey.txt:/opt/etherpad-lite/APIKEY.txt
ports:
- 9001:9001
environment:
- DB_TYPE=postgres
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=etherpad
- DB_USER=etherpad
- DB_PASS=etherpad
# allow only group pads
# - REQUIRE_SESSION=true
# only API can create pads
- EDIT_ONLY=true
# restart the container until db has created tables
restart: on-failure
depends_on:
- db
meilisearch:
hostname: meilisearch
image: getmeili/meilisearch:v1.8
restart: on-failure
environment:
- MEILI_MASTER_KEY=masterKey
- MEILI_NO_ANALYTICS=true
- MEILI_ENV=development
- MEILI_LOG_LEVEL
# uncomment below to develop on the meilisearch interface from your local machine
# by default ports do not need to be exposed as all queries are proxied by the backend
# ports:
# - 7700:7700
volumes:
- ./meilisearch_data:/meili_data
umami:
hostname: umami
image: ghcr.io/umami-software/umami:3.0.3
environment:
DATABASE_URL: postgresql://umami:umami@db:5432/umami
DATABASE_TYPE: postgresql
APP_SECRET: a5b20f9ac88eb6d9c2a443664968052ee9f34a3ea8ed1ebe0c0d5c51d5ea78ca
depends_on:
db:
condition: service_healthy
restart: on-failure
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]
interval: 5s
timeout: 5s
retries: 5
ports:
- 8000:3000
# used to test aws services locally
garage:
hostname: garage
image: dxflrs/garage:v2.0.0
volumes:
- ../tmp/garage/data:/var/lib/garage/data
- ../tmp/garage/meta:/var/lib/garage/meta
- ./garage/garage.toml:/etc/garage.toml
ports:
- "3900:3900"
- "3901:3901"
- "3902:3902"
- "3903:3903"
localfile:
hostname: localfile
image: joseluisq/static-web-server:2
environment:
# Note: those envs are customizable but also optional
# - SERVER_HOST=127.0.0.1
- SERVER_PORT=1081
- SERVER_ROOT=/tmp/graasp-file-item-storage
volumes:
- ../tmp:/tmp/graasp-file-item-storage
ports:
- 1081:1081
# necessary for graasp-embedded-link-item
iframely:
hostname: iframely
image: graasp/iframely:latest
environment:
NODE_ENV: production # required in order for the responses to not timeout
# exposing these ports is not necessary
# ports:
# - 8061:8061
# necessary for validation
nudenet:
hostname: nudenet
image: public.ecr.aws/graasp/graasp:nudenet-latest
# exposing these ports is not necessary
# ports:
# - 8080:8080
# a mock mailbox on port 1025 (web UI at http://localhost:1080)
mailer:
hostname: mailer
image: schickling/mailcatcher
ports:
- "1080:1080"
caddy:
image: caddy:2
hostname: caddy
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile:ro
ports:
- "3000:3000"
- "4001:4001"
depends_on:
- core
restart: unless-stopped
volumes:
postgres-data: