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:
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 && \
|
||||
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
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