Compare commits
No commits in common. "71db409b153df502c25ea89ec37a64fb9e8e4b4d" and "153943b3eda0027bfb3bd63ede6c78c03ffe7871" have entirely different histories.
71db409b15
...
153943b3ed
@ -6,7 +6,6 @@ services:
|
|||||||
image: mathwave/sprint-repo:queues
|
image: mathwave/sprint-repo:queues
|
||||||
networks:
|
networks:
|
||||||
- queues-development
|
- queues-development
|
||||||
- queues-mongo-development
|
|
||||||
environment:
|
environment:
|
||||||
MONGO_HOST: "mongo.develop.sprinthub.ru"
|
MONGO_HOST: "mongo.develop.sprinthub.ru"
|
||||||
MONGO_PASSWORD: $MONGO_PASSWORD_DEV
|
MONGO_PASSWORD: $MONGO_PASSWORD_DEV
|
||||||
@ -21,27 +20,6 @@ services:
|
|||||||
parallelism: 1
|
parallelism: 1
|
||||||
order: start-first
|
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:
|
networks:
|
||||||
queues-development:
|
queues-development:
|
||||||
external: true
|
external: true
|
||||||
queues-mongo-development:
|
|
||||||
driver: overlay
|
|
||||||
|
@ -6,7 +6,6 @@ services:
|
|||||||
image: mathwave/sprint-repo:queues
|
image: mathwave/sprint-repo:queues
|
||||||
networks:
|
networks:
|
||||||
- queues
|
- queues
|
||||||
- queues-mongo-production
|
|
||||||
environment:
|
environment:
|
||||||
MONGO_HOST: "mongo.sprinthub.ru"
|
MONGO_HOST: "mongo.sprinthub.ru"
|
||||||
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
|
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
|
||||||
@ -21,27 +20,6 @@ services:
|
|||||||
parallelism: 1
|
parallelism: 1
|
||||||
order: start-first
|
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:
|
networks:
|
||||||
queues:
|
queues:
|
||||||
external: true
|
external: true
|
||||||
queues-mongo-production:
|
|
||||||
driver: overlay
|
|
||||||
|
@ -26,13 +26,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: push
|
- name: push
|
||||||
run: docker push mathwave/sprint-repo:queues
|
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:
|
deploy-dev:
|
||||||
name: Deploy dev
|
name: Deploy dev
|
||||||
runs-on: [prod]
|
runs-on: [prod]
|
||||||
@ -48,4 +41,4 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
MONGO_PASSWORD_DEV: ${{ secrets.MONGO_PASSWORD_DEV }}
|
MONGO_PASSWORD_DEV: ${{ secrets.MONGO_PASSWORD_DEV }}
|
||||||
REDIS_PASSWORD_DEV: ${{ secrets.REDIS_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
|
||||||
|
@ -26,13 +26,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: push
|
- name: push
|
||||||
run: docker push mathwave/sprint-repo:queues
|
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:
|
deploy-prod:
|
||||||
name: Deploy prod
|
name: Deploy prod
|
||||||
runs-on: [prod]
|
runs-on: [prod]
|
||||||
@ -48,4 +41,4 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
MONGO_PASSWORD_PROD: ${{ secrets.MONGO_PASSWORD_PROD }}
|
MONGO_PASSWORD_PROD: ${{ secrets.MONGO_PASSWORD_PROD }}
|
||||||
REDIS_PASSWORD_PROD: ${{ secrets.REDIS_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
|
||||||
|
Loading…
Reference in New Issue
Block a user