mirror of
https://github.com/status-im/github-webhook-filter.git
synced 2026-08-27 16:51:29 +00:00
make Docker Compose use PORT for --allow-net flag
Otherwise we get error like this: error: Uncaught (in promise) PermissionDenied: Requires net access to "0.0.0.0:8900", run again with the --allow-net flag Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
@@ -13,4 +13,6 @@ RUN deno cache deps.ts
|
||||
COPY . .
|
||||
RUN deno cache main.ts
|
||||
|
||||
ENV PORT=8080
|
||||
|
||||
CMD ["run", "--allow-env", "--allow-net=:8080,discord.com", "main.ts"]
|
||||
|
||||
@@ -8,6 +8,12 @@ services:
|
||||
env_file: .env
|
||||
environment:
|
||||
HOSTNAME: "0.0.0.0"
|
||||
ADDR: "${ADDR:-127.0.0.1}"
|
||||
PORT: "${PORT:-8080}"
|
||||
ports:
|
||||
- '${ADDR:-127.0.0.1}:${PORT:-8080}:${PORT:-8080}'
|
||||
command:
|
||||
- run
|
||||
- --allow-env
|
||||
- --allow-net=:${PORT},discord.com
|
||||
- main.ts
|
||||
|
||||
Reference in New Issue
Block a user