Skip to content

Commit 36456ed

Browse files
committed
build(worker): Use discordjs/proxy instead of twilight http proxy
1 parent a8587e5 commit 36456ed

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

docker-compose.dev.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
version: "3.8"
22
services:
3-
twilight-http-proxy:
3+
discord_api_proxy:
44
ports:
5-
- "3001:80"
6-
environment:
7-
- RUST_LOG=twilight_http_proxy=trace
5+
- "3001:8080"
86
shlink:
97
ports:
108
- "8080:8080"
11-
keydb:
12-
ports:
13-
- "6379:6379"

docker-compose.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ services:
2121
- DISCORD_TOKEN=$DISCORD_TOKEN
2222
- APPLICATION_ID=193163942502072320
2323
- DATABASE_URL=$DATABASE_URL
24-
- SUSHII_GRAPHQL_WS_URL=ws://sushii_data:8080/graphql
25-
- SUSHII_GRAPHQL_TOKEN=$SUSHII_GRAPHQL_TOKEN
2624
- SENTRY_DSN=$SENTRY_DSN
27-
- TWILIGHT_PROXY_URL=http://twilight-http-proxy:80/api
25+
- DISCORD_API_PROXY_URL=http://discord_api_proxy:8080/api
2826
- SUSHII_IMAGE_SERVER_URL=http://sushii-image-server:3000
2927
- TRACING_EXPORTER_URL=http://host.docker.internal:4318/v1/traces
3028
# Notifications
@@ -40,6 +38,12 @@ services:
4038
- "traefik.enable=false"
4139
- "logging=promtail"
4240
- "logging_jobname=sushii_worker"
41+
discord_api_proxy:
42+
image: discordjs/proxy
43+
container_name: discord_api_proxy
44+
restart: unless-stopped
45+
expose:
46+
- "8080"
4347
sushii_data:
4448
build:
4549
dockerfile: ./dockerfiles/sushii-data/Dockerfile

0 commit comments

Comments
 (0)