fistful-server/docker-compose.sh

254 lines
7.8 KiB
Bash
Raw Normal View History

2018-06-13 13:43:48 +00:00
#!/bin/bash
cat <<EOF
version: '2.1'
services:
${SERVICE_NAME}:
image: ${BUILD_IMAGE}
volumes:
- .:$PWD
- ./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/jwk.publ.json:/opt/wapi/config/jwk.publ.json
- ./apps/wapi/var/keys/wapi/jwk.priv.json:/opt/wapi/config/jwk.priv.json
2020-01-29 15:07:07 +00:00
- ./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
depends_on:
wapi-pcidss:
condition: service_healthy
hellgate:
condition: service_healthy
identification:
condition: service_healthy
cds:
condition: service_healthy
dominant:
condition: service_healthy
machinegun:
condition: service_healthy
adapter-mocketbank:
condition: service_healthy
wapi-pcidss:
2020-12-09 11:24:13 +00:00
image: dr2.rbkmoney.com/rbkmoney/wapi:007ea0caa93174a02c2054f2bfc6a7f9d5bd68aa
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
- ./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
depends_on:
cds:
condition: service_healthy
healthcheck:
test: "curl http://localhost:8080/"
interval: 5s
timeout: 1s
retries: 10
hellgate:
image: dr2.rbkmoney.com/rbkmoney/hellgate:0a2b81adbb25ef33b749f3b218df191aa7bc35a5
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
- ./test/log/hellgate:/var/log/hellgate
healthcheck:
test: "curl http://localhost:8022/"
interval: 5s
timeout: 1s
retries: 10
adapter-mocketbank:
depends_on:
- cds
image: dr2.rbkmoney.com/rbkmoney/proxy-mocketbank:e4a10c63a25e12cbc149f48a555eabe1cb60fae1
command: |
java
-Xms64m -Xmx256m
-jar /opt/proxy-mocketbank/proxy-mocketbank.jar
--logging.file=/var/log/proxy-mocketbank/proxy-mocketbank.json
--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
working_dir: /opt/proxy-mocketbank
healthcheck:
test: "curl http://localhost:8022/"
interval: 5s
timeout: 1s
retries: 20
dominant:
image: dr2.rbkmoney.com/rbkmoney/dominant:ce9486ee2ae9b32a7df88a0e71464658febd99e6
command: /opt/dominant/bin/dominant foreground
2018-06-13 13:43:48 +00:00
depends_on:
machinegun:
condition: service_healthy
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
retries: 10
shumway:
image: dr2.rbkmoney.com/rbkmoney/shumway:d36bcf5eb8b1dbba634594cac11c97ae9c66db9f
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
2019-02-01 09:08:46 +00:00
retries: 30
identification:
image: dr2.rbkmoney.com/rbkmoney/identification:1d23c0fa422d2bd0542a08f70cca292f1d6c91eb
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:
image: dr2.rbkmoney.com/rbkmoney/cds:c0661c4d5abb85f7728bd0e816760670aa248251
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
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:281462a3a9088cec5b46b3c999885d0edc8d3a61
2020-01-29 15:07:07 +00:00
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:bfa6fc0428a75c9f179b89b9278ed1aedbb8b649
2019-05-28 13:32:59 +00:00
command: /opt/holmes/scripts/cds/keyring.py init
depends_on:
- cds
2018-06-13 13:43:48 +00:00
machinegun:
image: dr2.rbkmoney.com/rbkmoney/machinegun:c35e8a08500fbc2f0f0fa376a145a7324d18a062
2018-06-13 13:43:48 +00:00
command: /opt/machinegun/bin/machinegun foreground
volumes:
- ./test/machinegun/config.yaml:/opt/machinegun/etc/config.yaml
- ./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
retries: 10
2018-06-13 13:43:48 +00:00
bender:
image: dr2.rbkmoney.com/rbkmoney/bender:cd0ee8faae41f22a40ea119337be2a842e3e9cd8
command: /opt/bender/bin/bender foreground
volumes:
- ./test/log/bender:/var/log/bender
healthcheck:
test: "curl http://localhost:8022/"
interval: 5s
timeout: 1s
retries: 20
depends_on:
- machinegun
shumway-db:
image: dr2.rbkmoney.com/rbkmoney/postgres:9.6
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
fistful-magista:
image: dr2.rbkmoney.com/rbkmoney/fistful-magista:1b87307648dc94ad956f7c803546a68f87c0c016
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
- SERVICE_NAME=ffmagista
ffmagista-db:
image: dr2.rbkmoney.com/rbkmoney/postgres:9.6
environment:
- POSTGRES_DB=ffmagista
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- SERVICE_NAME=ffmagista-db
EOF