0
0
Fork 0
mirror of https://git.verdigado.com/NB-Public/simple-wkd.git synced 2024-12-05 03:12:50 +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 && \
apt-get update && \
apt-get install clang llvm pkg-config nettle-dev -y
apt-get install clang nettle-dev -y
COPY backend .
RUN cargo build --release
@ -20,10 +20,7 @@ RUN mv dist assets/webpage
FROM debian:bullseye-slim
WORKDIR /simplewkd
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install clang llvm pkg-config nettle-dev -y && \
rm -rf /var/lib/apt/lists/* && adduser --no-create-home simplewkd && \
RUN adduser --no-create-home simplewkd && \
chown -R simplewkd:simplewkd /simplewkd && \
chmod -R 777 /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: