diff --git a/.deploy/deploy-dev.yaml b/.deploy/deploy-dev.yaml index 0b04024..ba2776e 100644 --- a/.deploy/deploy-dev.yaml +++ b/.deploy/deploy-dev.yaml @@ -16,6 +16,7 @@ services: update_config: parallelism: 1 order: start-first + postgres: image: postgres volumes: @@ -30,6 +31,34 @@ services: condition: any placement: constraints: [node.role == manager] + update_config: + parallelism: 1 + order: start-first + + rabbitmq: + image: rabbitmq:3.7.9-management + ports: + - "15672:15672" + - "5672:5672" + deploy: + mode: replicated + restart_policy: + condition: any + update_config: + parallelism: 1 + order: start-first + + redis: + image: redis + ports: + - "6379:6379" + environment: + REDIS_PASSWORD: $REDIS_PASSWORD_DEV + command: redis-server --requirepass ${REDIS_PASSWORD} + deploy: + mode: replicated + restart_policy: + condition: any update_config: parallelism: 1 order: start-first \ No newline at end of file diff --git a/.deploy/deploy-prod.yaml b/.deploy/deploy-prod.yaml index 5d605f5..201071e 100644 --- a/.deploy/deploy-prod.yaml +++ b/.deploy/deploy-prod.yaml @@ -1,4 +1,5 @@ version: "3.6" + services: nginx: image: nginx @@ -16,6 +17,7 @@ services: update_config: parallelism: 1 order: start-first + postgres: image: postgres volumes: @@ -33,3 +35,31 @@ services: update_config: parallelism: 1 order: start-first + + rabbitmq: + image: rabbitmq:3.7.9-management + ports: + - "15672:15672" + - "5672:5672" + deploy: + mode: replicated + restart_policy: + condition: any + update_config: + parallelism: 1 + order: start-first + + redis: + image: redis + ports: + - "6379:6379" + environment: + REDIS_PASSWORD: $REDIS_PASSWORD_PROD + command: redis-server --requirepass ${REDIS_PASSWORD} + deploy: + mode: replicated + restart_policy: + condition: any + update_config: + parallelism: 1 + order: start-first \ No newline at end of file