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: networks:
bfile: bfile:
volumes: volumes:
- './filed:/opt/code' - './filed:/config:ro'
- './filed/config:/etc/filed' - './filed/config:/etc/filed:ro'
- '/opt/code/target'
- './volatile/files:/opt/user_uploads' - './volatile/files:/opt/user_uploads'
janitord: janitord:
build: build:
@ -18,7 +17,7 @@ services:
networks: networks:
bfile: bfile:
volumes: volumes:
- './janitor:/opt/code' - './janitor:/config:ro'
- './volatile/files:/opt/user_uploads' - './volatile/files:/opt/user_uploads'
caddy: caddy:
image: caddy:alpine image: caddy:alpine

View File

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

View File

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