2018-05-30 14:45:42 +00:00
|
|
|
#!/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
|
|
|
|
|
|
|
|
machinegun:
|
2019-04-04 08:24:24 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/machinegun:5e26162266a3bcf857852cb7844e5626fb0ebf7a
|
2018-05-30 14:45:42 +00:00
|
|
|
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: 20
|
|
|
|
|
|
|
|
EOF
|