From 935406f6e23f402cd0f348688bef521aa02b0e71 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 7 Sep 2024 20:01:49 +0200 Subject: [PATCH] feat(docker): expose admin interface from docker --- Dockerfile | 6 ++++-- docker-compose.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7cbbdd7..9880627 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,11 @@ COPY . . RUN cargo install --path . EXPOSE 1337/tcp +EXPOSE 80/tcp ENV WOOLY_CHALLENGE 3 -ENV WOOLY_PORT 1337 +ENV WOOLY_CHALLENGE_PORT 1337 +ENV WOOLY_ADMIN_PORT 80 ENV WOOLY_ARGS "" -CMD WOOLY_SECRET=$(cat /run/secrets/flag) wooly-vault $WOOLY_CHALLENGE 0.0.0.0:$WOOLY_PORT $WOOLY_ARGS +CMD WOOLY_SECRET=$(cat /run/secrets/flag) wooly-vault $WOOLY_CHALLENGE 0.0.0.0:$WOOLY_CHALLENGE_PORT $WOOLY_ARGS -a 0.0.0.0:$WOOLY_ADMIN_PORT diff --git a/docker-compose.yml b/docker-compose.yml index d82fbf0..ac336aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,9 +7,9 @@ services: - flag ports: - 127.0.0.1:1337:1337 # change this depending on who should be able to access + - 127.0.0.1:8000:80 # change this depending on who should be able to access environment: WOOLY_CHALLENGE: 3 # change me - WOOLY_PORT: 1337 WOOLY_ARGS: "" secrets: flag: