Merge pull request 'join' (#26) from join into dev

Reviewed-on: #26
This commit is contained in:
emmatveev 2024-11-23 21:17:31 +03:00
commit 72ee47c543
3 changed files with 35 additions and 13 deletions

View File

@ -7,8 +7,12 @@ services:
networks:
- common-infra-nginx-development
ports:
- "80:80"
- "443:443"
- published: 80
target: 80
mode: host
- published: 443
target: 443
mode: host
deploy:
mode: replicated
replicas: 1

View File

@ -7,8 +7,12 @@ services:
networks:
- common-infra-nginx
ports:
- "80:80"
- "443:443"
- published: 80
target: 80
mode: host
- published: 443
target: 443
mode: host
deploy:
mode: replicated
replicas: 1
@ -33,7 +37,9 @@ services:
start_period: 20s
timeout: 10s
ports:
- "5432:5432"
- published: 5432
target: 5432
mode: host
deploy:
mode: replicated
restart_policy:
@ -57,7 +63,9 @@ services:
MONGO_INITDB_ROOT_USERNAME: mongo
MONGO_INITDB_ROOT_PASSWORD: $MONGO_PASSWORD_PROD
ports:
- "27017:27017"
- published: 27017
target: 27017
mode: host
deploy:
mode: replicated
restart_policy:
@ -73,8 +81,12 @@ services:
volumes:
- /sprint-data/rabbitmq:/var/lib/rabbitmq
ports:
- "5672:5672"
- "15672:15672"
- published: 5672
target: 5672
mode: host
- published: 15672
target: 15672
mode: host
environment:
RABBITMQ_DEFAULT_PASS: $RABBITMQ_PASSWORD_PROD
deploy:
@ -92,7 +104,9 @@ services:
volumes:
- /sprint-data/redis:/data
ports:
- "6379:6379"
- published: 6379
target: 6379
mode: host
command: redis-server --requirepass $REDIS_PASSWORD_PROD
deploy:
mode: replicated
@ -112,8 +126,12 @@ services:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: $MINIO_PASSWORD_PROD
ports:
- "9000:9000"
- "9001:9001"
- published: 9000
target: 9000
mode: host
- published: 9001
target: 9001
mode: host
deploy:
mode: replicated
placement:

View File

@ -9,7 +9,7 @@ on:
jobs:
build:
name: Build
runs-on: [ dev ]
runs-on: [ prod ]
steps:
- name: login
run: docker login -u mathwave -p ${{ secrets.DOCKERHUB_PASSWORD }}
@ -23,7 +23,7 @@ jobs:
run: docker build -t mathwave/sprint-repo:gitea-runner gitea-runner
push:
name: Push
runs-on: [ dev ]
runs-on: [ prod ]
needs: build
steps:
- name: push nginx prod