mirror of
https://github.com/3ybactuk/marketplace-go-service-project.git
synced 2025-10-30 05:53:45 +03:00
init
This commit is contained in:
12
comments/Makefile
Normal file
12
comments/Makefile
Normal file
@@ -0,0 +1,12 @@
|
||||
BINDIR=${CURDIR}/bin
|
||||
PACKAGE=route256/comments
|
||||
|
||||
bindir:
|
||||
mkdir -p ${BINDIR}
|
||||
|
||||
build: bindir
|
||||
echo "build comments"
|
||||
|
||||
|
||||
run-migrations:
|
||||
echo "run migrations"
|
||||
20
comments/configs/values_ci.yaml
Normal file
20
comments/configs/values_ci.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
app:
|
||||
edit_interval: 1s
|
||||
|
||||
service:
|
||||
host: localhost
|
||||
grpc_port: 8085
|
||||
http_port: 8086
|
||||
|
||||
db_shards:
|
||||
- host: "postgres-comments-shard-1"
|
||||
port: 5432
|
||||
user: comments-user-1
|
||||
password: comments-password-1
|
||||
db_name: comments_db
|
||||
|
||||
- host: "postgres-comments-shard-2"
|
||||
port: 5432
|
||||
user: comments-user-2
|
||||
password: comments-password-2
|
||||
db_name: comments_db
|
||||
20
comments/configs/values_local.yaml
Normal file
20
comments/configs/values_local.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
app:
|
||||
edit_interval: 1s
|
||||
|
||||
service:
|
||||
host: localhost
|
||||
grpc_port: 8085
|
||||
http_port: 8086
|
||||
|
||||
db_shards:
|
||||
- host: localhost
|
||||
port: 5434
|
||||
user: comments-user-1
|
||||
password: comments-password-1
|
||||
db_name: comments_db
|
||||
|
||||
- host: localhost
|
||||
port: 5435
|
||||
user: comments-user-2
|
||||
password: comments-password-2
|
||||
db_name: comments_db
|
||||
3
comments/go.mod
Normal file
3
comments/go.mod
Normal file
@@ -0,0 +1,3 @@
|
||||
module route256/comments
|
||||
|
||||
go 1.23.1
|
||||
Reference in New Issue
Block a user