updates
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/${REPO_NAME_SNAKE}?sslmode=disable
|
||||
@@ -24,3 +24,5 @@ go.work
|
||||
|
||||
.idea
|
||||
go.sum
|
||||
|
||||
.env
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
Шалон для Go сервисов (имя репо должно быть snake case)
|
||||
|
||||
Init
|
||||
Инициализация
|
||||
|
||||
```shell
|
||||
make generate
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15
|
||||
container_name: postgres15
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: ${REPO_NAME_SNAKE}
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
+2
-2
@@ -20,8 +20,8 @@ services:
|
||||
- app_network
|
||||
|
||||
postgres:
|
||||
image: postgres:18
|
||||
container_name: postgres18
|
||||
image: postgres:15
|
||||
container_name: postgres15
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module ${REPO_NAME_SNAKE}
|
||||
|
||||
go 1.22
|
||||
go 1.25.0
|
||||
|
||||
require (
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0
|
||||
@@ -10,8 +10,14 @@ require (
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/jackc/pgpassfile v1.0.0 // indirect
|
||||
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
||||
github.com/jackc/pgx/v5 v5.10.0 // indirect
|
||||
github.com/jackc/puddle/v2 v2.2.2 // indirect
|
||||
github.com/joho/godotenv v1.5.1
|
||||
golang.org/x/net v0.23.0 // indirect
|
||||
golang.org/x/sync v0.17.0 // indirect
|
||||
golang.org/x/sys v0.18.0 // indirect
|
||||
golang.org/x/text v0.15.0 // indirect
|
||||
golang.org/x/text v0.29.0 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240513163218-0867130af1f8 // indirect
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user