mirror of
https://github.com/valitydev/machinery-erlang.git
synced 2024-11-06 00:35:19 +00:00
30 lines
698 B
Bash
Executable File
30 lines
698 B
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:
|
|
machinegun:
|
|
condition: service_healthy
|
|
|
|
machinegun:
|
|
image: dr2.rbkmoney.com/rbkmoney/machinegun:c89c2cecc6fa72895492c718f042a7ec90fd2442
|
|
command: /opt/machinegun/bin/machinegun foreground
|
|
volumes:
|
|
- ./test/machinegun/config.yaml:/opt/machinegun/etc/config.yaml
|
|
- ./test/machinegun/cookie:/opt/machinegun/etc/cookie
|
|
healthcheck:
|
|
test: "curl http://localhost:8022/"
|
|
interval: 5s
|
|
timeout: 1s
|
|
retries: 20
|
|
|
|
EOF
|