mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-21 21:48:21 -05:00
Merge pull request #279 from evanyang1/evanyang-274
🔧 Volumes for docker deployment to make editing config files easier
This commit is contained in:
commit
e16f7a5cde
@ -21,8 +21,6 @@ RUN cargo install --path .
|
|||||||
# We do not need the Rust toolchain to run the binary!
|
# We do not need the Rust toolchain to run the binary!
|
||||||
FROM gcr.io/distroless/cc-debian12
|
FROM gcr.io/distroless/cc-debian12
|
||||||
COPY --from=builder /app/public/ /opt/websurfx/public/
|
COPY --from=builder /app/public/ /opt/websurfx/public/
|
||||||
COPY --from=builder /app/websurfx/config.lua /etc/xdg/websurfx/config.lua
|
VOLUME ["/etc/xdg/websurfx/"]
|
||||||
COPY --from=builder /app/websurfx/allowlist.txt /etc/xdg/websurfx/allowlist.txt
|
|
||||||
COPY --from=builder /app/websurfx/blocklist.txt /etc/xdg/websurfx/blocklist.txt
|
|
||||||
COPY --from=builder /usr/local/cargo/bin/* /usr/local/bin/
|
COPY --from=builder /usr/local/cargo/bin/* /usr/local/bin/
|
||||||
CMD ["websurfx"]
|
CMD ["websurfx"]
|
||||||
|
@ -10,6 +10,9 @@ services:
|
|||||||
- redis
|
- redis
|
||||||
links:
|
links:
|
||||||
- redis
|
- redis
|
||||||
|
volumes:
|
||||||
|
- ./websurfx/:/etc/xdg/websurfx/
|
||||||
|
- ./public/:/opt/websurfx/public/
|
||||||
redis:
|
redis:
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
ports:
|
ports:
|
||||||
|
Loading…
Reference in New Issue
Block a user