0
0
Fork 0
mirror of https://git.verdigado.com/NB-Public/simple-wkd.git synced 2024-10-30 05:05:52 +01:00

Add docker-compose.yml

This commit is contained in:
Delta1925 2023-04-16 18:10:48 +02:00
parent f04e2d0541
commit cd40153615
No known key found for this signature in database
GPG key ID: 1C21ACE44193CB25
2 changed files with 19 additions and 5 deletions

View file

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