mirror of
https://github.com/valitydev/url-shortener.git
synced 2024-11-06 01:55:19 +00:00
29 lines
637 B
Bash
29 lines
637 B
Bash
|
#!/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: dr.rbkmoney.com/rbkmoney/machinegun:769bd38b57bb3230fded6acd76b2c5a672745e9a
|
||
|
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
|
||
|
|
||
|
EOF
|