rename guard -> mcaptcha in docker files

This commit is contained in:
realaravinth 2021-06-02 18:17:25 +05:30
parent 2925f82aa5
commit 17ae532162
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
2 changed files with 11 additions and 11 deletions

View file

@ -1,6 +1,6 @@
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
COPY package.json yarn.lock ./
@ -14,9 +14,9 @@ WORKDIR /src
RUN cargo build --release
FROM debian:buster
RUN useradd -ms /bin/bash -u 1001 guard
WORKDIR /home/guard
COPY --from=rust /src/target/release/guard /usr/local/bin/
COPY --from=rust /src/config/default.toml /etc/guard/config.toml
USER guard
CMD [ "/usr/local/bin/guard" ]
RUN useradd -ms /bin/bash -u 1001 mcaptcha
WORKDIR /home/mcaptcha
COPY --from=rust /src/target/release/mcaptcha /usr/local/bin/
COPY --from=rust /src/config/default.toml /etc/mcaptcha/config.toml
USER mcaptcha
CMD [ "/usr/local/bin/mcaptcha" ]

View file

@ -1,7 +1,7 @@
version: '3.9'
services:
guard:
mcaptcha:
build: .
ports:
- 7000:7000
@ -12,10 +12,10 @@ services:
postgres:
image: postgres:13.2
volumes:
- mcaptcha-guard-data:/var/lib/postgresql/
- mcaptcha-data:/var/lib/postgresql/
environment:
POSTGRES_PASSWORD: # enter password
PGDATA: /var/lib/postgresql/data/guard/
PGDATA: /var/lib/postgresql/data/mcaptcha/
volumes:
mcaptcha-guard-data:
mcaptcha-data: