--
This commit is contained in:
parent
df9eb05f7d
commit
1a98be369d
@ -21,3 +21,11 @@ deploy-to-staging:
|
||||
extends: .deploy_template
|
||||
rules:
|
||||
- if: "$CI_COMMIT_BRANCH == $STAGING_BRANCH"
|
||||
|
||||
deploy-to-prod:
|
||||
stage: deploy
|
||||
tags:
|
||||
- prod
|
||||
extends: .deploy_template
|
||||
rules:
|
||||
- if: "$CI_COMMIT_BRANCH == $PRODUCTION_BRANCH"
|
||||
|
40
deployments/main/docker-compose.yaml
Normal file
40
deployments/main/docker-compose.yaml
Normal file
@ -0,0 +1,40 @@
|
||||
version: "3.3"
|
||||
|
||||
services:
|
||||
treasurer-app-prod:
|
||||
hostname: treasurer-service-prod
|
||||
container_name: treasurer-service-prod
|
||||
image: $CI_REGISTRY_IMAGE/main:$CI_COMMIT_REF_SLUG.$CI_PIPELINE_ID
|
||||
tty: true
|
||||
environment:
|
||||
- HTTP_HOST=0.0.0.0
|
||||
- HTTP_PORT=8085
|
||||
- HTTP_DOMEN=http://localhost:8085
|
||||
|
||||
- GRPC_HOST=0.0.0.0
|
||||
- GRPC_PORT=9085
|
||||
|
||||
- IS_MOCK=false
|
||||
|
||||
- YOOMONEY_STORE_ID=914332
|
||||
- YOOMONEY_SECRET_KEY=live_os6hGLfoP6u32RVi4kW8xDZ-2gjWmdVvF5SWl3UaOOQ
|
||||
- YOOMONEY_PAYMENTS_URL=https://api.yookassa.ru/v3/payments
|
||||
|
||||
- MONGO_HOST=10.8.0.8
|
||||
- MONGO_PORT=27017
|
||||
- MONGO_USER=$MONGO_USER
|
||||
- MONGO_PASSWORD=$MONGO_PASSWORD
|
||||
- MONGO_DB_NAME=treasurer
|
||||
- MONGO_AUTH=treasurer
|
||||
ports:
|
||||
- 8085:8085
|
||||
- 9085:9085
|
||||
networks:
|
||||
- backend_external
|
||||
- default
|
||||
networks:
|
||||
backend_external:
|
||||
driver: bridge
|
||||
attachable: true
|
||||
internal: true
|
||||
|
Loading…
Reference in New Issue
Block a user