From 690f02a459c295d0478e710580635ad670c7cd8f Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 29 May 2026 18:46:28 -0400 Subject: [PATCH] Fixed docker --- Dockerfile | 7 +++++-- docker-compose.yaml | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2dbbb24..6b975ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,8 @@ RUN mkdir -p -m 0700 ~/.ssh && \ ssh-keyscan git.kundeng.us >> ~/.ssh/known_hosts # Configure Git to use SSH for GitHub -RUN git config --global url."ssh://git@git.kundeng.us".insteadOf "https://git.kundeng.us" +RUN git config --global url."git@git.kundeng.us:".insteadOf "https://git.kundeng.us/" && \ + git config --global url."git@git.kundeng.us:".insteadOf "http://git.kundeng.us/" # Set up the Go environment for private modules ENV GOPRIVATE=git.kundeng.us @@ -20,7 +21,9 @@ ENV GOPRIVATE=git.kundeng.us # Copy go mod and sum files COPY go.mod go.sum ./ -RUN --mount=type=ssh mkdir src && \ +# RUN --mount=type=ssh mkdir src && \ +# go mod download +RUN --mount=type=ssh \ go mod download # Copy source code diff --git a/docker-compose.yaml b/docker-compose.yaml index 98ba1b1..47462b8 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -62,7 +62,7 @@ services: POSTGRES_DB: ${POSTGRES_AUTH_DB:-textsender_db} volumes: # Persist database data using a named volume - - postgres_data:/var/lib/postgresql/data + - postgres_data:/var/lib/postgresql ports: - "5432:5432" healthcheck: @@ -86,7 +86,7 @@ services: POSTGRES_DB: ${POSTGRES_AUTH_DB:-textsender_auth_db} volumes: # Persist database data using a named volume - - postgres_data_auth:/var/lib/postgresql/data + - postgres_data_auth:/var/lib/postgresql ports: - "5433:5432" healthcheck: