rename guard -> mcaptcha in docker files
This commit is contained in:
parent
2925f82aa5
commit
17ae532162
2 changed files with 11 additions and 11 deletions
14
Dockerfile
14
Dockerfile
|
@ -1,6 +1,6 @@
|
||||||
FROM node:14.16.0 as frontend
|
FROM node:14.16.0 as frontend
|
||||||
|
|
||||||
LABEL org.opencontainers.image.source https://github.com/mCaptcha/guard
|
LABEL org.opencontainers.image.source https://github.com/mCaptcha/mCaptcha
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
|
@ -14,9 +14,9 @@ WORKDIR /src
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
|
||||||
FROM debian:buster
|
FROM debian:buster
|
||||||
RUN useradd -ms /bin/bash -u 1001 guard
|
RUN useradd -ms /bin/bash -u 1001 mcaptcha
|
||||||
WORKDIR /home/guard
|
WORKDIR /home/mcaptcha
|
||||||
COPY --from=rust /src/target/release/guard /usr/local/bin/
|
COPY --from=rust /src/target/release/mcaptcha /usr/local/bin/
|
||||||
COPY --from=rust /src/config/default.toml /etc/guard/config.toml
|
COPY --from=rust /src/config/default.toml /etc/mcaptcha/config.toml
|
||||||
USER guard
|
USER mcaptcha
|
||||||
CMD [ "/usr/local/bin/guard" ]
|
CMD [ "/usr/local/bin/mcaptcha" ]
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
version: '3.9'
|
version: '3.9'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
guard:
|
mcaptcha:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- 7000:7000
|
- 7000:7000
|
||||||
|
@ -12,10 +12,10 @@ services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:13.2
|
image: postgres:13.2
|
||||||
volumes:
|
volumes:
|
||||||
- mcaptcha-guard-data:/var/lib/postgresql/
|
- mcaptcha-data:/var/lib/postgresql/
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: # enter password
|
POSTGRES_PASSWORD: # enter password
|
||||||
PGDATA: /var/lib/postgresql/data/guard/
|
PGDATA: /var/lib/postgresql/data/mcaptcha/
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mcaptcha-guard-data:
|
mcaptcha-data:
|
||||||
|
|
Loading…
Reference in a new issue