diff --git a/Dockerfile b/Dockerfile index 45e5c89..8274961 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ FROM alpine:latest COPY . . +CMD 'envsubst "$(env)" < garage.toml > garage.toml & cp garage.toml /etc/garage.toml' FROM dxflrs/garage:v1.1.0 COPY --from=0 garage.toml /etc/garage.toml diff --git a/docker-compose.yaml b/docker-compose.yaml index eadc23d..d9959f9 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -9,7 +9,6 @@ services: volumes: - /mnt/Samsung1TB/garage-fs/meta:/opt/prod/garage-fs/meta - /mnt/Samsung1TB/garage-fs/data:/opt/prod/garage-fs/data - - ./garage.toml:/etc/garage.toml healthcheck: test: ["CMD", "nc", "-z", "127.0.0.1", "3900"] interval: 5s