diff --git a/.deploy-infra/deploy-prod.yaml b/.deploy-infra/deploy-prod.yaml index 27b11a6..cb2defe 100644 --- a/.deploy-infra/deploy-prod.yaml +++ b/.deploy-infra/deploy-prod.yaml @@ -33,7 +33,9 @@ services: start_period: 20s timeout: 10s ports: - - "5432:5432" + - published: 5432 + target: 5432 + mode: host deploy: mode: replicated restart_policy: @@ -57,7 +59,9 @@ services: MONGO_INITDB_ROOT_USERNAME: mongo MONGO_INITDB_ROOT_PASSWORD: $MONGO_PASSWORD_PROD ports: - - "27017:27017" + - published: 27017 + target: 27017 + mode: host deploy: mode: replicated restart_policy: @@ -73,8 +77,12 @@ services: volumes: - /sprint-data/rabbitmq:/var/lib/rabbitmq ports: - - "5672:5672" - - "15672:15672" + - published: 5672 + target: 5672 + mode: host + - published: 15672 + target: 15672 + mode: host environment: RABBITMQ_DEFAULT_PASS: $RABBITMQ_PASSWORD_PROD deploy: @@ -92,7 +100,9 @@ services: volumes: - /sprint-data/redis:/data ports: - - "6379:6379" + - published: 6379 + target: 6379 + mode: host command: redis-server --requirepass $REDIS_PASSWORD_PROD deploy: mode: replicated @@ -112,8 +122,12 @@ services: MINIO_ROOT_USER: minioadmin MINIO_ROOT_PASSWORD: $MINIO_PASSWORD_PROD ports: - - "9000:9000" - - "9001:9001" + - published: 9000 + target: 9000 + mode: host + - published: 9001 + target: 9001 + mode: host deploy: mode: replicated placement: