Skip to content

Commit 4a16063

Browse files
committed
feat: add Delphi to Docker Compose with-delphi profile
1 parent bb457d4 commit 4a16063

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

apps/labrinth/.env.docker-compose

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ PYRO_API_KEY=none
123123
BREX_API_URL=https://platform.brexapis.com/v2/
124124
BREX_API_KEY=none
125125

126-
DELPHI_URL=http://labrinth-delphi:8001
126+
DELPHI_URL=http://labrinth-delphi:59999
127127
DELPHI_SLACK_WEBHOOK=none
128128

129129
ARCHON_URL=none

apps/labrinth/.env.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ PYRO_API_KEY=none
123123
BREX_API_URL=https://platform.brexapis.com/v2/
124124
BREX_API_KEY=none
125125

126-
DELPHI_URL=http://delphi:8001
126+
DELPHI_URL=http://127.0.0.1:59999
127127
DELPHI_SLACK_WEBHOOK=none
128128

129129
ARCHON_URL=none

docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,21 @@ services:
9898
watch:
9999
- path: ./apps/labrinth
100100
action: rebuild
101+
delphi:
102+
profiles:
103+
- with-delphi
104+
image: ghcr.io/modrinth/delphi:main
105+
container_name: labrinth-delphi
106+
ports:
107+
- '59999:59999'
108+
environment:
109+
LABRINTH_ENDPOINT: http://labrinth:8000/_internal/delphi/ingest
110+
LABRINTH_ADMIN_KEY: feedbeef
111+
healthcheck:
112+
test: ['CMD', 'wget', '-q', '-O/dev/null', 'http://localhost:59999/health']
113+
interval: 3s
114+
timeout: 5s
115+
retries: 3
101116
volumes:
102117
meilisearch-data:
103118
db-data:

0 commit comments

Comments
 (0)