Compare commits

..

No commits in common. "71db409b153df502c25ea89ec37a64fb9e8e4b4d" and "153943b3eda0027bfb3bd63ede6c78c03ffe7871" have entirely different histories.

4 changed files with 2 additions and 60 deletions

View File

@ -6,7 +6,6 @@ services:
image: mathwave/sprint-repo:queues
networks:
- queues-development
- queues-mongo-development
environment:
MONGO_HOST: "mongo.develop.sprinthub.ru"
MONGO_PASSWORD: $MONGO_PASSWORD_DEV
@ -21,27 +20,6 @@ services:
parallelism: 1
order: start-first
storage:
image: mongo:6.0.2
networks:
- queues-mongo-development
volumes:
- /sprint-data/queues-mongo:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: mongo
MONGO_INITDB_ROOT_PASSWORD: password
deploy:
mode: replicated
restart_policy:
condition: any
placement:
constraints: [node.labels.stage == development]
update_config:
parallelism: 1
order: start-first
networks:
queues-development:
external: true
queues-mongo-development:
driver: overlay

View File

@ -6,7 +6,6 @@ services:
image: mathwave/sprint-repo:queues
networks:
- queues
- queues-mongo-production
environment:
MONGO_HOST: "mongo.sprinthub.ru"
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
@ -21,27 +20,6 @@ services:
parallelism: 1
order: start-first
storage:
image: mongo:6.0.2
networks:
- queues-mongo-production
volumes:
- /sprint-data/queues-mongo:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: mongo
MONGO_INITDB_ROOT_PASSWORD: password
deploy:
mode: replicated
restart_policy:
condition: any
placement:
constraints: [node.labels.stage == development]
update_config:
parallelism: 1
order: start-first
networks:
queues:
external: true
queues-mongo-production:
driver: overlay

View File

@ -26,13 +26,6 @@ jobs:
steps:
- name: push
run: docker push mathwave/sprint-repo:queues
create_dir:
name: Create dir
runs-on: [ dev ]
needs: build
steps:
- name: create_dir
run: mkdir /sprint-data/queues-mongo || true
deploy-dev:
name: Deploy dev
runs-on: [prod]
@ -48,4 +41,4 @@ jobs:
env:
MONGO_PASSWORD_DEV: ${{ secrets.MONGO_PASSWORD_DEV }}
REDIS_PASSWORD_DEV: ${{ secrets.REDIS_PASSWORD_DEV }}
run: docker stack deploy --with-registry-auth -c ./.deploy/deploy-dev.yaml queues-development
run: docker stack deploy --with-registry-auth -c ./.deploy/deploy-dev.yaml infra-development

View File

@ -26,13 +26,6 @@ jobs:
steps:
- name: push
run: docker push mathwave/sprint-repo:queues
create_dir:
name: Create dir
runs-on: [ prod ]
needs: build
steps:
- name: create_dir
run: mkdir /sprint-data/queues-mongo || true
deploy-prod:
name: Deploy prod
runs-on: [prod]
@ -48,4 +41,4 @@ jobs:
env:
MONGO_PASSWORD_PROD: ${{ secrets.MONGO_PASSWORD_PROD }}
REDIS_PASSWORD_PROD: ${{ secrets.REDIS_PASSWORD_PROD }}
run: docker stack deploy --with-registry-auth -c ./.deploy/deploy-prod.yaml queues
run: docker stack deploy --with-registry-auth -c ./.deploy/deploy-prod.yaml infra