diff --git a/apps/backend/Dockerfile b/apps/backend/Dockerfile index e59c935..2ba32cf 100644 --- a/apps/backend/Dockerfile +++ b/apps/backend/Dockerfile @@ -14,8 +14,8 @@ ARG PGPORT ARG IMAGEOPTION ARG CONCURRENT_IMAGES - -RUN apk add --no-cache ffmpeg ca-certificates libwebp-tools curl +RUN apk add --no-cache ffmpeg ca-certificates libwebp-tools curl tzdata +ENV TZ="Europe/Rome" ENV GOMEMLIMIT=2750MiB ENV GOGC=100 ENV PGHOST=$PGHOST diff --git a/apps/backend/update.go b/apps/backend/update.go index b4a36c7..77eb243 100644 --- a/apps/backend/update.go +++ b/apps/backend/update.go @@ -184,8 +184,6 @@ func (u *Updater) setupMediaWorkload(xml *typesdefs.AnnunciXML) { } } - fmt.Printf("codice: %s, in_bd: %d\n", *a.Codice, len(in_db)) - if len(in_db) == 0 { // not found in db if config.Cfg.Images.Enabled { @@ -207,9 +205,7 @@ func (u *Updater) setupMediaWorkload(xml *typesdefs.AnnunciXML) { if found_img && found_thumb { break } - fmt.Printf("%s -> %s\n", fotoUrl, ref.OgURL) if fotoUrl == ref.OgURL { - fmt.Println("match") if ref.IsThumbnail { found_thumb = true continue @@ -218,7 +214,6 @@ func (u *Updater) setupMediaWorkload(xml *typesdefs.AnnunciXML) { } } if !found_img || !found_thumb { - fmt.Printf("not found img %s\n", fotoUrl) img_process = true break } diff --git a/apps/infoalloggi/Dockerfile b/apps/infoalloggi/Dockerfile index 1372ddc..c6f2a7c 100644 --- a/apps/infoalloggi/Dockerfile +++ b/apps/infoalloggi/Dockerfile @@ -76,7 +76,8 @@ ARG SKEBBY_PASS ENV SKEBBY_PASS=$SKEBBY_PASS ENV REVALIDATION_SECRET="SWKpgaaLfsyeqV1eOT0WG7TUFBewir8kJXure3O37ki8Lt4Z4IiEgBW4zPHDdM5c" -RUN apk add --no-cache curl typst +RUN apk add --no-cache curl typst tzdata +ENV TZ="Europe/Rome" RUN addgroup -g 1001 -S nodejs RUN adduser -S nextjs -u 1001 diff --git a/docker-compose.yml b/docker-compose.yml index 9ef58bf..6fdbb8c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,7 @@ services: image: postgres:18-bookworm environment: TZ: Europe/Rome + PGTZ: Europe/Rome POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_DB: ${POSTGRES_DB} @@ -47,7 +48,6 @@ services: restart: unless-stopped pull_policy: "always" environment: - TZ: Europe/Rome POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_DB: ${POSTGRES_DB} @@ -70,7 +70,6 @@ services: restart: unless-stopped pull_policy: "always" environment: - TZ: Europe/Rome INTERNAL_BASE_URL: http://web:3000 POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}