diff --git a/Dockerfile b/Dockerfile index 9c34a81..83f081e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.90-slim-trixie as builder +FROM rust:1.90-slim-trixie AS builder WORKDIR /app COPY Cargo.toml Cargo.lock ./ diff --git a/docker-compose.yml b/docker-compose.yml index 3b83042..d0679bd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,10 +7,9 @@ services: BINARY_NAME: tg-relay-rs environment: TELOXIDE_TOKEN: ${TELOXIDE_TOKEN} - COOKIES_PATH: /app/yt-cookies.txt + COOKIES_PATH: ${COOKIES_PATH:-/app/yt-cookies.txt} RUST_LOG: ${RUST_LOG:-info} restart: unless-stopped - # If you need persistent storage (e.g. caching): volumes: - ./comments.txt:/app/comments.txt:ro - - ~/.config/yt-cookies.txt:/app/yt-cookies.txt:ro + - ${HOME}/.config/yt-cookies.txt:/app/yt-cookies.txt:ro