fix docker

This commit is contained in:
2026-07-06 23:58:32 +07:00
parent 4f7a63a2c2
commit 9af65d8a89
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -17,10 +17,10 @@ build-builder:
build-linux: build-linux:
docker run --rm \ docker run --rm \
-v "$PWD":/app \ -v "$$PWD":/app \
-w /app \ -w /app \
my-go-builder sh -c \ my-go-builder sh -c \
"GOOS=linux GOARCH=arm64 go build -o bin/evening_detective_server_linux_arm64 cmd/evening_detective_server/main.go" "GOOS=linux GOARCH=arm64 go build -o bin/evening_detective_server cmd/evening_detective_server/main.go"
test: test:
go test -count=1 ./... go test -count=1 ./...
+2 -2
View File
@@ -8,8 +8,8 @@ services:
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
POSTGRES_DB: evening_detective_server POSTGRES_DB: evening_detective_server
TZ: Asia/Barnaul # Для системного времени контейнера TZ: Asia/Barnaul # Для системного времени контейнера
PGTZ: Asia/Barnaul # Специфичная для PostgreSQL переменная PGTZ: Asia/Barnaul # Специфичная для PostgreSQL переменная
ports: ports:
- "5432:5432" - "5432:5432"
volumes: volumes:
+3 -3
View File
@@ -12,7 +12,7 @@ services:
ports: ports:
- "8080:8080" - "8080:8080"
environment: environment:
- DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/evening_detective_server?sslmode=disable" DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/evening_detective_server?sslmode=disable"
depends_on: depends_on:
- postgres - postgres
restart: unless-stopped restart: unless-stopped
@@ -26,8 +26,8 @@ services:
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_PASSWORD: detective POSTGRES_PASSWORD: detective
POSTGRES_DB: evening_detective_server POSTGRES_DB: evening_detective_server
TZ: Asia/Barnaul # Для системного времени контейнера TZ: Asia/Barnaul # Для системного времени контейнера
PGTZ: Asia/Barnaul # Специфичная для PostgreSQL переменная PGTZ: Asia/Barnaul # Специфичная для PostgreSQL переменная
ports: ports:
- "5432:5432" - "5432:5432"
volumes: volumes: