generated from PlexSheep/rs-base
feat(docker): expose admin interface from docker
cargo devel CI / cargo CI (push) Successful in 1m52s
Details
cargo devel CI / cargo CI (push) Successful in 1m52s
Details
This commit is contained in:
parent
e0f33897a1
commit
935406f6e2
|
@ -6,9 +6,11 @@ COPY . .
|
||||||
RUN cargo install --path .
|
RUN cargo install --path .
|
||||||
|
|
||||||
EXPOSE 1337/tcp
|
EXPOSE 1337/tcp
|
||||||
|
EXPOSE 80/tcp
|
||||||
|
|
||||||
ENV WOOLY_CHALLENGE 3
|
ENV WOOLY_CHALLENGE 3
|
||||||
ENV WOOLY_PORT 1337
|
ENV WOOLY_CHALLENGE_PORT 1337
|
||||||
|
ENV WOOLY_ADMIN_PORT 80
|
||||||
ENV WOOLY_ARGS ""
|
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
|
||||||
|
|
|
@ -7,9 +7,9 @@ services:
|
||||||
- flag
|
- flag
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:1337:1337 # change this depending on who should be able to access
|
- 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:
|
environment:
|
||||||
WOOLY_CHALLENGE: 3 # change me
|
WOOLY_CHALLENGE: 3 # change me
|
||||||
WOOLY_PORT: 1337
|
|
||||||
WOOLY_ARGS: ""
|
WOOLY_ARGS: ""
|
||||||
secrets:
|
secrets:
|
||||||
flag:
|
flag:
|
||||||
|
|
Loading…
Reference in New Issue