hellgate/docker-compose.sh
yuri-bukhalenkov cfb0c20ec0
ED-97: switching to external pm (#578)
* switching to external pm

* switched to party client for some tests (in hg_invoice_tests_SUITE); removed party_management tests

* removed party_management, pm_proto, pm_client apps

* fixed tests

* replaced hg_client_party with party_client (part I, hg_invoice_template_tests_SUITE)

* replaced hg_client_party with party_client (part II, hg_invoice_tests_SUITE)

* fixed merging issues

Co-authored-by: r.shaidullin <ndiezel0@gmail.com>
2021-07-26 12:59:34 +03:00

89 lines
2.4 KiB
Bash
Executable File

#!/bin/bash
cat <<EOF
version: '2.1'
services:
${SERVICE_NAME}:
image: ${BUILD_IMAGE}
volumes:
- .:$PWD
- $HOME/.cache:/home/$UNAME/.cache
working_dir: $PWD
command: /sbin/init
depends_on:
machinegun:
condition: service_healthy
shumway:
condition: service_healthy
mem_limit: 512M
dominant:
image: dr2.rbkmoney.com/rbkmoney/dominant:15ceafee13b874a728d28fc5567ad070fac1d0fa
command: /opt/dominant/bin/dominant foreground
depends_on:
machinegun:
condition: service_healthy
machinegun:
image: dr2.rbkmoney.com/rbkmoney/machinegun:c35e8a08500fbc2f0f0fa376a145a7324d18a062
command: /opt/machinegun/bin/machinegun foreground
volumes:
- ./test/machinegun/config.yaml:/opt/machinegun/etc/config.yaml
- ./test/machinegun/cookie:/opt/machinegun/etc/cookie
healthcheck:
test: "curl http://localhost:8022/"
interval: 5s
timeout: 1s
retries: 20
limiter:
image: dr2.rbkmoney.com/rbkmoney/limiter:c5572a9a22b3fea68213f32276b5272605aebec8
command: /opt/limiter/bin/limiter foreground
depends_on:
machinegun:
condition: service_healthy
shumway:
condition: service_healthy
shumway:
image: dr2.rbkmoney.com/rbkmoney/shumway:658c9aec229b5a70d745a49cb938bb1a132b5ca2
restart: unless-stopped
entrypoint:
- java
- -Xmx512m
- -jar
- /opt/shumway/shumway.jar
- --spring.datasource.url=jdbc:postgresql://shumway-db:5432/shumway
- --spring.datasource.username=postgres
- --spring.datasource.password=postgres
- --management.metrics.export.statsd.enabled=false
depends_on:
- shumway-db
healthcheck:
test: "curl http://localhost:8022/"
interval: 5s
timeout: 1s
retries: 20
party-management:
image: dr2.rbkmoney.com/rbkmoney/party-management:45184ecf6e36fa5f72b7bc3d65c143f2dc8055dc
command: /opt/party-management/bin/party-management foreground
depends_on:
- machinegun
- dominant
- shumway
healthcheck:
test: "curl http://localhost:8022/"
interval: 5s
timeout: 1s
retries: 20
shumway-db:
image: dr2.rbkmoney.com/rbkmoney/postgres:9.6
environment:
- POSTGRES_DB=shumway
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- SERVICE_NAME=shumway-db
EOF