mirror of
https://git.verdigado.com/NB-Public/simple-wkd.git
synced 2024-10-30 03:05:51 +01:00
Add docker-compose.yml
This commit is contained in:
parent
f04e2d0541
commit
cd40153615
2 changed files with 19 additions and 5 deletions
|
@ -2,7 +2,7 @@ FROM rust:1.68 AS bin-builder
|
||||||
|
|
||||||
RUN export DEBIAN_FRONTEND=noninteractive && \
|
RUN export DEBIAN_FRONTEND=noninteractive && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install clang llvm pkg-config nettle-dev -y
|
apt-get install clang nettle-dev -y
|
||||||
COPY backend .
|
COPY backend .
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
|
||||||
|
@ -20,10 +20,7 @@ RUN mv dist assets/webpage
|
||||||
FROM debian:bullseye-slim
|
FROM debian:bullseye-slim
|
||||||
|
|
||||||
WORKDIR /simplewkd
|
WORKDIR /simplewkd
|
||||||
RUN export DEBIAN_FRONTEND=noninteractive && \
|
RUN adduser --no-create-home simplewkd && \
|
||||||
apt-get update && \
|
|
||||||
apt-get install clang llvm pkg-config nettle-dev -y && \
|
|
||||||
rm -rf /var/lib/apt/lists/* && adduser --no-create-home simplewkd && \
|
|
||||||
chown -R simplewkd:simplewkd /simplewkd && \
|
chown -R simplewkd:simplewkd /simplewkd && \
|
||||||
chmod -R 777 /simplewkd
|
chmod -R 777 /simplewkd
|
||||||
USER simplewkd
|
USER simplewkd
|
||||||
|
|
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
keyserver:
|
||||||
|
image: "simple-wkd"
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
||||||
|
environment:
|
||||||
|
- RUST_LOG=debug
|
||||||
|
volumes:
|
||||||
|
- ./config.toml:/simplewkd/config.toml
|
||||||
|
- wkd-data:/simplewkd/data
|
||||||
|
- wkd-logs:/simplewkd/logs
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
wkd-data:
|
||||||
|
wkd-logs:
|
Loading…
Reference in a new issue