fistful-server/docker-compose.sh

260 lines
8.1 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
- ./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:
2021-02-08 15:36:18 +00:00
image: dr2.rbkmoney.com/rbkmoney/wapi:9ad9bc94d13ad04a594963a64701226b51560f5b
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
- ./apps/wapi/var/keys/wapi/jwk.publ.json:/opt/wapi/var/keys/wapi/jwk.publ.json
- ./apps/wapi/var/keys/wapi/jwk.priv.json:/opt/wapi/var/keys/wapi/jwk.priv.json
2020-01-29 15:07:07 +00:00
- ./test/log/wapi:/var/log/wapi
depends_on:
cds:
condition: service_healthy
binbase:
condition: service_healthy
healthcheck:
test: "curl http://localhost:8080/"
interval: 5s
timeout: 1s
retries: 10
hellgate:
2021-02-08 15:36:18 +00:00
image: dr2.rbkmoney.com/rbkmoney/hellgate:32e269ab4f9f51b87dcb5a14a478b829a9c15737
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:39131ebc714c9a97c692e8c6b656a5938b6ba545
command: |
java
-Xms64m -Xmx256m
-jar /opt/proxy-mocketbank/proxy-mocketbank.jar
--logging.file=/var/log/proxy-mocketbank/proxy-mocketbank.json
--server.rest.port=8080
--server.port=8022
--cds.client.storage.url=http://cds:8022/v2/storage
--cds.client.identity-document-storage.url=http://cds:8022/v1/identity_document_storage
--hellgate.client.adapter.url=http://hellgate:8022/v1/proxyhost/provider
--fistful.client.adapter.url=http://wapi:8022/v1/ff_p2p_adapter_host
working_dir: /opt/proxy-mocketbank
2020-12-29 14:16:07 +00:00
volumes:
- ./test/log/proxy-mocketbank:/var/log/proxy-mocketbank
healthcheck:
test: "curl http://localhost:8022/"
interval: 5s
timeout: 1s
retries: 20
dominant:
2021-02-08 15:36:18 +00:00
image: dr2.rbkmoney.com/rbkmoney/dominant:0ee5a2b878152145412f4a3562ea552d4113a836
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:
2021-02-08 15:36:18 +00:00
image: dr2.rbkmoney.com/rbkmoney/shumway:e946e83703e02f4359cd536b15fb94457f9bfb20
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:
2021-01-13 13:06:26 +00:00
image: dr2.rbkmoney.com/rbkmoney/kds:2f62c8b8e6e32a7d76d7f1ef251bcda419eb9e1f
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:
2021-02-08 15:36:18 +00:00
image: dr2.rbkmoney.com/rbkmoney/holmes:07f58e297c03bcd50dc4695ddbcfa4eb30c9928e
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:
2021-02-08 15:36:18 +00:00
image: dr2.rbkmoney.com/rbkmoney/machinegun:0da2ffc23221e1e3f8557b03d48d11d2dd18fac0
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-data:fe5b954414e5ca7b07f1cbc1d24b231b307f2cfb
2020-02-07 10:34:23 +00:00
restart: always
healthcheck:
test: "curl http://localhost:8022/"
interval: 5s
timeout: 1s
retries: 10
fistful-magista:
2020-12-29 14:16:07 +00:00
image: dr2.rbkmoney.com/rbkmoney/fistful-magista:ae8a1ccdddcf75827251d9011f4f340baaaeafa8
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