generated from VLADIMIR/template
fix docker
This commit is contained in:
@@ -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 ./...
|
||||||
|
|||||||
@@ -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
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user