mirror of
https://github.com/valitydev/party-client-erlang.git
synced 2024-11-06 10:45:23 +00:00
82 lines
2.1 KiB
Bash
Executable File
82 lines
2.1 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:
|
|
hellgate:
|
|
condition: service_healthy
|
|
|
|
dominant:
|
|
image: dr.rbkmoney.com/rbkmoney/dominant:2c4c8aef2de8b55dfe6ea43e919b967ca649d98d
|
|
command: /opt/dominant/bin/dominant foreground
|
|
depends_on:
|
|
machinegun:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: "curl http://localhost:8022/"
|
|
interval: 5s
|
|
timeout: 1s
|
|
retries: 12
|
|
|
|
hellgate:
|
|
image: dr.rbkmoney.com/rbkmoney/hellgate:77d2fd4827b2c4c5d8e324e049feff850fabbbbc
|
|
command: /opt/hellgate/bin/hellgate foreground
|
|
depends_on:
|
|
machinegun:
|
|
condition: service_healthy
|
|
dominant:
|
|
condition: service_healthy
|
|
shumway:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: "curl http://localhost:8022/"
|
|
interval: 5s
|
|
timeout: 1s
|
|
retries: 12
|
|
|
|
machinegun:
|
|
image: dr.rbkmoney.com/rbkmoney/machinegun:27df9e276102d5c9faf8d1121374c7355d8e2d1b
|
|
command: /opt/machinegun/bin/machinegun foreground
|
|
volumes:
|
|
- ./test/machinegun/config.yaml:/opt/machinegun/etc/config.yaml
|
|
healthcheck:
|
|
test: "curl http://localhost:8022/"
|
|
interval: 5s
|
|
timeout: 1s
|
|
retries: 12
|
|
|
|
shumway:
|
|
image: dr.rbkmoney.com/rbkmoney/shumway:862509b10a637d9b7ea739abd56bc6b18cf25296
|
|
restart: always
|
|
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
|
|
depends_on:
|
|
- shumway-db
|
|
healthcheck:
|
|
test: "curl http://localhost:8022/"
|
|
interval: 5s
|
|
timeout: 1s
|
|
retries: 20
|
|
|
|
shumway-db:
|
|
image: dr.rbkmoney.com/rbkmoney/postgres:9.6
|
|
environment:
|
|
- POSTGRES_DB=shumway
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
- SERVICE_NAME=shumway-db
|
|
EOF
|