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 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" ]

View file

@ -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: