2018-06-13 13:43:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
cat <<EOF
|
|
|
|
version: '2.1'
|
|
|
|
services:
|
|
|
|
|
|
|
|
${SERVICE_NAME}:
|
|
|
|
image: ${BUILD_IMAGE}
|
|
|
|
volumes:
|
|
|
|
- .:$PWD
|
2018-12-05 15:26:56 +00:00
|
|
|
- ./apps/wapi/var/keys/wapi/private.pem:/opt/wapi/config/private.pem
|
2020-01-29 15:07:07 +00:00
|
|
|
- ./apps/wapi/var/keys/wapi/jwk.json:/opt/wapi/config/jwk.json
|
|
|
|
- ./apps/wapi/var/keys/wapi/enc.1.priv.json:/opt/wapi/config/enc.1.priv.json
|
|
|
|
- ./apps/wapi/var/keys/wapi/sig.1.priv.json:/opt/wapi/config/sig.1.priv.json
|
2018-06-13 13:43:48 +00:00
|
|
|
- $HOME/.cache:/home/$UNAME/.cache
|
|
|
|
working_dir: $PWD
|
2019-05-28 13:32:59 +00:00
|
|
|
command: /sbin/init
|
2018-06-20 13:19:30 +00:00
|
|
|
depends_on:
|
2018-12-05 15:26:56 +00:00
|
|
|
wapi-pcidss:
|
|
|
|
condition: service_healthy
|
2018-06-20 13:19:30 +00:00
|
|
|
hellgate:
|
|
|
|
condition: service_healthy
|
2018-07-02 15:42:36 +00:00
|
|
|
identification:
|
|
|
|
condition: service_healthy
|
|
|
|
cds:
|
|
|
|
condition: service_healthy
|
2018-06-20 13:19:30 +00:00
|
|
|
dominant:
|
|
|
|
condition: service_healthy
|
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
2018-09-25 11:25:00 +00:00
|
|
|
adapter-mocketbank:
|
|
|
|
condition: service_healthy
|
2018-06-20 13:19:30 +00:00
|
|
|
|
2018-12-05 15:26:56 +00:00
|
|
|
wapi-pcidss:
|
2020-02-07 10:34:23 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/wapi:a1bf7d5f2f7e536d3ce4c2d8e5f84e5f94621d76
|
2018-12-05 15:26:56 +00:00
|
|
|
command: /opt/wapi/bin/wapi foreground
|
|
|
|
volumes:
|
2020-01-29 15:07:07 +00:00
|
|
|
- ./test/wapi/sys.config:/opt/wapi/releases/0.0.1/sys.config
|
2018-12-05 15:26:56 +00:00
|
|
|
- ./apps/wapi/var/keys/wapi/private.pem:/opt/wapi/var/keys/wapi/private.pem
|
2020-01-29 15:07:07 +00:00
|
|
|
- ./apps/wapi/var/keys/wapi/jwk.json:/opt/wapi/var/keys/wapi/jwk.json
|
|
|
|
- ./test/log/wapi:/var/log/wapi
|
2018-12-05 15:26:56 +00:00
|
|
|
depends_on:
|
|
|
|
cds:
|
|
|
|
condition: service_healthy
|
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8080/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 10
|
|
|
|
|
2018-06-20 13:19:30 +00:00
|
|
|
hellgate:
|
2020-07-06 07:02:12 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/hellgate:3f3c8e18cd59551dd739682539136fc541b60738
|
2018-06-20 13:19:30 +00:00
|
|
|
command: /opt/hellgate/bin/hellgate foreground
|
|
|
|
depends_on:
|
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
|
|
|
dominant:
|
|
|
|
condition: service_healthy
|
|
|
|
shumway:
|
|
|
|
condition: service_healthy
|
|
|
|
volumes:
|
2019-10-10 13:56:46 +00:00
|
|
|
- ./test/hellgate/sys.config:/opt/hellgate/releases/0.1/sys.config
|
2018-06-20 13:19:30 +00:00
|
|
|
- ./test/log/hellgate:/var/log/hellgate
|
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
2018-07-02 15:42:36 +00:00
|
|
|
retries: 10
|
2018-06-20 13:19:30 +00:00
|
|
|
|
2018-09-25 11:25:00 +00:00
|
|
|
adapter-mocketbank:
|
2018-07-06 09:06:25 +00:00
|
|
|
depends_on:
|
|
|
|
- cds
|
2020-02-12 12:15:09 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/proxy-mocketbank:e4a10c63a25e12cbc149f48a555eabe1cb60fae1
|
2018-07-06 09:06:25 +00:00
|
|
|
command: |
|
|
|
|
java
|
|
|
|
-Xms64m -Xmx256m
|
2018-09-25 11:25:00 +00:00
|
|
|
-jar /opt/proxy-mocketbank/proxy-mocketbank.jar
|
|
|
|
--logging.file=/var/log/proxy-mocketbank/proxy-mocketbank.json
|
2018-07-06 09:06:25 +00:00
|
|
|
--server.secondary.ports=8080
|
|
|
|
--server.port=8022
|
|
|
|
--cds.url.storage=http://cds:8022/v1/storage
|
|
|
|
--cds.url.idStorage=http://cds:8022/v1/identity_document_storage
|
|
|
|
--hellgate.url=http://hellgate:8022/v1/proxyhost/provider
|
2018-09-25 11:25:00 +00:00
|
|
|
working_dir: /opt/proxy-mocketbank
|
2018-07-06 09:06:25 +00:00
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 20
|
|
|
|
|
2018-06-20 13:19:30 +00:00
|
|
|
dominant:
|
2020-07-06 07:02:12 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/dominant:035868ba0ab4dd6ea3a6ac57157be2ca4b8a3361
|
2018-06-20 13:19:30 +00:00
|
|
|
command: /opt/dominant/bin/dominant foreground
|
2018-06-13 13:43:48 +00:00
|
|
|
depends_on:
|
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
2018-06-20 13:19:30 +00:00
|
|
|
volumes:
|
|
|
|
- ./test/dominant/sys.config:/opt/dominant/releases/0.1/sys.config
|
|
|
|
- ./test/log/dominant:/var/log/dominant
|
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
2018-07-02 15:42:36 +00:00
|
|
|
retries: 10
|
2018-06-20 13:19:30 +00:00
|
|
|
|
|
|
|
shumway:
|
2019-10-14 11:16:30 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/shumway:d36bcf5eb8b1dbba634594cac11c97ae9c66db9f
|
|
|
|
restart: unless-stopped
|
2018-06-20 13:19:30 +00:00
|
|
|
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
|
2019-10-14 11:16:30 +00:00
|
|
|
- --management.metrics.export.statsd.enabled=false
|
2018-06-20 13:19:30 +00:00
|
|
|
depends_on:
|
|
|
|
- shumway-db
|
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
2019-02-01 09:08:46 +00:00
|
|
|
retries: 30
|
2018-07-02 15:42:36 +00:00
|
|
|
|
|
|
|
identification:
|
2020-02-12 12:15:09 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/identification:f83f6e1952fe77b9adc7b69c511d7e8ed1ae1f83
|
2018-07-02 15:42:36 +00:00
|
|
|
command: /opt/identification/bin/identification foreground
|
|
|
|
volumes:
|
|
|
|
- ./test/identification/sys.config:/opt/identification/releases/0.1/sys.config
|
|
|
|
- ./test/log/identification:/var/log/identification
|
|
|
|
depends_on:
|
|
|
|
- cds
|
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
cds:
|
2020-03-16 10:30:19 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/cds:7aeee60277aab0e6ebb6e6b1334752d3091082f4
|
2018-07-02 15:42:36 +00:00
|
|
|
command: /opt/cds/bin/cds foreground
|
|
|
|
volumes:
|
|
|
|
- ./test/cds/sys.config:/opt/cds/releases/0.1.0/sys.config
|
|
|
|
- ./test/log/cds:/var/log/cds
|
2020-01-29 15:07:07 +00:00
|
|
|
- ./test/cds/ca.crt:/var/lib/cds/ca.crt:ro
|
|
|
|
- ./test/cds/client.pem:/var/lib/cds/client.pem
|
2018-07-02 15:42:36 +00:00
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 10
|
2020-01-29 15:07:07 +00:00
|
|
|
depends_on:
|
|
|
|
kds:
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
kds:
|
|
|
|
image: dr2.rbkmoney.com/rbkmoney/kds:bbbf99db9636f9554f8bf092b268a2e479481943
|
|
|
|
command: /opt/kds/bin/kds foreground
|
|
|
|
volumes:
|
|
|
|
- ./test/kds/sys.config:/opt/kds/releases/0.1.0/sys.config:ro
|
|
|
|
- ./test/kds/ca.crt:/var/lib/kds/ca.crt:ro
|
|
|
|
- ./test/kds/server.pem:/var/lib/kds/server.pem:ro
|
|
|
|
- ./test/log/kds:/var/log/kds
|
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 20
|
2018-06-13 13:43:48 +00:00
|
|
|
|
2019-05-28 13:32:59 +00:00
|
|
|
holmes:
|
|
|
|
image: dr2.rbkmoney.com/rbkmoney/holmes:7a430d6ec97518a0ffe6e6c24ce267390de18b40
|
|
|
|
command: /opt/holmes/scripts/cds/keyring.py init
|
|
|
|
depends_on:
|
|
|
|
- cds
|
|
|
|
|
2018-06-13 13:43:48 +00:00
|
|
|
machinegun:
|
2020-06-04 07:47:43 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/machinegun:9b160a5f39fa54b1a20ca9cc8a9a881cbcc9ed4f
|
2018-06-13 13:43:48 +00:00
|
|
|
command: /opt/machinegun/bin/machinegun foreground
|
|
|
|
volumes:
|
|
|
|
- ./test/machinegun/config.yaml:/opt/machinegun/etc/config.yaml
|
2018-06-20 13:19:30 +00:00
|
|
|
- ./test/log/machinegun:/var/log/machinegun
|
2020-02-07 10:34:23 +00:00
|
|
|
- ./test/machinegun/cookie:/opt/machinegun/etc/cookie
|
2018-06-13 13:43:48 +00:00
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
2018-07-02 15:42:36 +00:00
|
|
|
retries: 10
|
2018-06-13 13:43:48 +00:00
|
|
|
|
2019-11-15 13:13:20 +00:00
|
|
|
bender:
|
2020-06-04 07:47:43 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/bender:2a9a0f556033f33f4d79e5f53280a415780318d6
|
2019-11-15 13:13:20 +00:00
|
|
|
command: /opt/bender/bin/bender foreground
|
2020-06-04 07:47:43 +00:00
|
|
|
volumes:
|
|
|
|
- ./test/log/bender:/var/log/bender
|
2019-11-15 13:13:20 +00:00
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 20
|
|
|
|
depends_on:
|
|
|
|
- machinegun
|
|
|
|
|
2018-06-20 13:19:30 +00:00
|
|
|
shumway-db:
|
2020-02-12 12:15:09 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/postgres:9.6
|
2018-06-20 13:19:30 +00:00
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=shumway
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
- SERVICE_NAME=shumway-db
|
|
|
|
|
2020-02-07 10:34:23 +00:00
|
|
|
binbase:
|
|
|
|
image: dr2.rbkmoney.com/rbkmoney/binbase:cb174f9ef488ba9015054377fe06495f999b191d
|
|
|
|
restart: always
|
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 10
|
|
|
|
|
2018-12-19 09:40:39 +00:00
|
|
|
fistful-magista:
|
2020-02-12 12:15:09 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/fistful-magista:1b87307648dc94ad956f7c803546a68f87c0c016
|
2018-12-19 09:40:39 +00:00
|
|
|
restart: always
|
|
|
|
entrypoint:
|
|
|
|
- java
|
|
|
|
- -Xmx256m
|
|
|
|
- -jar
|
|
|
|
- /opt/fistful-magista/fistful-magista.jar
|
|
|
|
- --spring.datasource.url=jdbc:postgresql://ffmagista-db:5432/ffmagista
|
|
|
|
- --spring.datasource.username=postgres
|
|
|
|
- --withdrawal.polling.url=http://fistful-server:8022/v1/eventsink/withdrawal
|
|
|
|
- --identity.polling.url=http://fistful-server:8022/v1/eventsink/identity
|
|
|
|
- --wallet.polling.url=http://fistful-server:8022/v1/eventsink/wallet
|
|
|
|
depends_on:
|
|
|
|
- ffmagista-db
|
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 10
|
|
|
|
environment:
|
|
|
|
- SPRING_DATASOURCE_PASSWORD=postgres
|
2019-02-04 10:09:42 +00:00
|
|
|
- SERVICE_NAME=ffmagista
|
|
|
|
|
2018-12-19 09:40:39 +00:00
|
|
|
ffmagista-db:
|
2020-02-12 12:15:09 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/postgres:9.6
|
2018-12-19 09:40:39 +00:00
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=ffmagista
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
- SERVICE_NAME=ffmagista-db
|
|
|
|
|
2020-02-07 10:34:23 +00:00
|
|
|
EOF
|