mount config files in their places
This commit is contained in:
parent
022dffa1c4
commit
f1ee297b8d
|
@ -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
|
||||
|
|
|
@ -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" ]
|
||||
|
|
|
@ -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" ]
|
||||
|
|
Loading…
Reference in New Issue