join #26

Merged
emmatveev merged 4 commits from join into dev 2024-11-23 21:17:32 +03:00
3 changed files with 35 additions and 13 deletions

View File

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

View File

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

View File

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