85 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			85 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
version: "3.4"
 | 
						|
 | 
						|
 | 
						|
services:
 | 
						|
 | 
						|
  worker:
 | 
						|
    image: mathwave/sprint-repo:ruz-bot
 | 
						|
    environment:
 | 
						|
      STAGE: "development"
 | 
						|
      MONGO_PASSWORD: $MONGO_PASSWORD_DEV
 | 
						|
    networks:
 | 
						|
      - queues-development
 | 
						|
      - configurator
 | 
						|
      - mongo-development
 | 
						|
    command: worker
 | 
						|
    deploy:
 | 
						|
      mode: replicated
 | 
						|
      restart_policy:
 | 
						|
        condition: any
 | 
						|
      update_config:
 | 
						|
        parallelism: 1
 | 
						|
        order: start-first
 | 
						|
 | 
						|
  fetch:
 | 
						|
    image: mathwave/sprint-repo:ruz-bot
 | 
						|
    environment:
 | 
						|
      STAGE: "development"
 | 
						|
      MONGO_PASSWORD: $MONGO_PASSWORD_DEV
 | 
						|
    networks:
 | 
						|
      - queues-development
 | 
						|
      - mongo-development
 | 
						|
    command: fetch
 | 
						|
    deploy:
 | 
						|
      mode: replicated
 | 
						|
      restart_policy:
 | 
						|
        condition: any
 | 
						|
      update_config:
 | 
						|
        parallelism: 1
 | 
						|
        order: start-first
 | 
						|
 | 
						|
  notify:
 | 
						|
    image: mathwave/sprint-repo:ruz-bot
 | 
						|
    environment:
 | 
						|
      STAGE: "development"
 | 
						|
      MONGO_PASSWORD: $MONGO_PASSWORD_DEV
 | 
						|
    networks:
 | 
						|
      - queues-development
 | 
						|
      - mongo-development
 | 
						|
    command: notify
 | 
						|
    deploy:
 | 
						|
      mode: replicated
 | 
						|
      restart_policy:
 | 
						|
        condition: any
 | 
						|
      update_config:
 | 
						|
        parallelism: 1
 | 
						|
        order: start-first
 | 
						|
 | 
						|
  ruz-bot-nginx:
 | 
						|
    image: mathwave/sprint-repo:ruz-bot
 | 
						|
    networks:
 | 
						|
      - common-infra-nginx-development
 | 
						|
      - queues-development
 | 
						|
      - mongo-development
 | 
						|
    environment:
 | 
						|
      STAGE: "development"
 | 
						|
      MONGO_PASSWORD: $MONGO_PASSWORD_DEV
 | 
						|
    command: api
 | 
						|
    deploy:
 | 
						|
      mode: replicated
 | 
						|
      restart_policy:
 | 
						|
        condition: any
 | 
						|
      update_config:
 | 
						|
        parallelism: 1
 | 
						|
        order: start-first
 | 
						|
 | 
						|
networks:
 | 
						|
  common-infra-nginx-development:
 | 
						|
    external: true
 | 
						|
  queues-development:
 | 
						|
    external: true
 | 
						|
  configurator:
 | 
						|
    external: true
 | 
						|
  mongo-development:
 | 
						|
    external: true
 |