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