ci: remove from external interface

This commit is contained in:
skeris 2024-04-21 18:55:52 +03:00
parent 8f7221e544
commit a35ac73e68
3 changed files with 12 additions and 32 deletions

@ -20,26 +20,6 @@ RUN go mod download
# Build app
RUN GOOS=linux go build -o bin ./...
# TEST
FROM alpine:3.18.3 AS test
# Install packages
RUN apk --no-cache add ca-certificates
# Create home directory
WORKDIR /app
# Copy build file
COPY --from=build /app/bin/app ./app
# Copy migration dir
COPY --from=build /app/migrations/test ./migrations
# Install migrate tool
COPY --from=build /bin/golang-migrate /usr/local/bin
# CMD
CMD [ "./app" ]
# PRODUCTION
FROM alpine:3.18.3 AS production

@ -12,24 +12,24 @@ services:
- GRPC_HOST=0.0.0.0
- GRPC_PORT=9065
- GRPC_DOMEN=10.6.0.11:9065
- GRPC_DOMEN=10.8.0.6:9065
- MONGO_HOST=10.6.0.11
- MONGO_HOST=10.8.0.6
- MONGO_PORT=27017
- MONGO_USER=$MONGO_USER
- MONGO_PASSWORD=$MONGO_PASSWORD
- MONGO_DB_NAME=customer
- MONGO_AUTH=customer
- KAFKA_BROKERS=10.6.0.11:9092
- KAFKA_BROKERS=10.8.0.6:9092
- KAFKA_TOPIC_TARIFF=tariffs
- AUTH_MICROSERVICE_USER_URL=http://10.6.0.11:59300/user
- HUBADMIN_MICROSERVICE_TARIFF_URL=http://10.6.0.11:59303/tariff
- CURRENCY_MICROSERVICE_TRANSLATE_URL=http://10.6.0.11:3131/change
- DISCOUNT_MICROSERVICE_GRPC_HOST=10.6.0.11:9001
- PAYMENT_MICROSERVICE_GRPC_HOST=10.6.0.11:9085
- VERIFICATION_MICROSERVICE_USER_URL=http://10.6.0.11:7035/verification
- AUTH_MICROSERVICE_USER_URL=http://10.8.0.6:59300/user
- HUBADMIN_MICROSERVICE_TARIFF_URL=http://10.8.0.6:59303/tariff
- CURRENCY_MICROSERVICE_TRANSLATE_URL=http://10.8.0.6:3131/change
- DISCOUNT_MICROSERVICE_GRPC_HOST=10.8.0.6:9001
- PAYMENT_MICROSERVICE_GRPC_HOST=10.8.0.6:9085
- VERIFICATION_MICROSERVICE_USER_URL=http://10.8.0.6:7035/verification
- TEMPLATEGEN_MICROSERVICE_URL=10.6.0.17
- API_URL=https://api.smtp.bz/v1/smtp/send
- MAIL_SENDER=noreply@mailing.pena.digital
@ -42,7 +42,7 @@ services:
- JWT_ISSUER=pena-auth-service
- JWT_AUDIENCE=pena
ports:
- 8065:8065
- 9065:9065
- 10.8.0.6:8065:8065
- 10.8.0.6:9065:9065
networks:
- default

2
go.mod

@ -1,6 +1,6 @@
module penahub.gitlab.yandexcloud.net/pena-services/customer
go 1.22.2
go 1.22.0
require (
github.com/deepmap/oapi-codegen v1.16.2