mount config files in their places

This commit is contained in:
blek 2023-10-23 00:03:02 +10:00
parent 022dffa1c4
commit f1ee297b8d
Signed by: blek
GPG Key ID: 14546221E3595D0C
3 changed files with 9 additions and 4 deletions

View File

@ -7,9 +7,8 @@ services:
networks:
bfile:
volumes:
- './filed:/opt/code'
- './filed/config:/etc/filed'
- '/opt/code/target'
- './filed:/config:ro'
- './filed/config:/etc/filed:ro'
- './volatile/files:/opt/user_uploads'
janitord:
build:
@ -18,7 +17,7 @@ services:
networks:
bfile:
volumes:
- './janitor:/opt/code'
- './janitor:/config:ro'
- './volatile/files:/opt/user_uploads'
caddy:
image: caddy:alpine

View File

@ -13,5 +13,8 @@ RUN strip target/release/filed && upx --best target/release/filed
# --- deploy ---
FROM busybox:musl
RUN mkdir /config
WORKDIR /config
COPY --from=builder /opt/build/target/release/filed /bin/filed
CMD [ "/bin/filed" ]

View File

@ -12,5 +12,8 @@ RUN strip target/release/janitor && upx --best target/release/janitor
# --- deploy ---
FROM busybox:musl
RUN mkdir /config
WORKDIR /config
COPY --from=builder /opt/build/target/release/janitor /bin/janitor
CMD [ "/bin/janitor" ]