2016-08-08 18:16:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
cat <<EOF
|
2016-06-29 13:58:48 +00:00
|
|
|
version: '2'
|
|
|
|
services:
|
2016-08-08 18:16:17 +00:00
|
|
|
${SERVICE_NAME}:
|
|
|
|
image: ${BUILD_IMAGE}
|
2016-06-29 13:58:48 +00:00
|
|
|
volumes:
|
2016-08-12 17:33:39 +00:00
|
|
|
- .:$PWD
|
|
|
|
- $HOME/.cache:/home/$UNAME/.cache
|
|
|
|
working_dir: $PWD
|
2016-06-29 13:58:48 +00:00
|
|
|
command: /sbin/init
|
2016-08-08 18:16:17 +00:00
|
|
|
depends_on:
|
2016-06-29 13:58:48 +00:00
|
|
|
- machinegun
|
|
|
|
machinegun:
|
2016-08-25 15:41:23 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/machinegun:cc5985c4b1ea385eba141995c37ebc67093a1fe7
|
|
|
|
volumes:
|
|
|
|
- ./test/machinegun/sys.config:/opt/machinegun/releases/0.1.0/sys.config
|
2016-07-15 12:58:11 +00:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|
|
|
|
driver_opts:
|
|
|
|
com.docker.network.enable_ipv6: "true"
|
2016-07-15 13:21:30 +00:00
|
|
|
com.docker.network.bridge.enable_ip_masquerade: "false"
|
2016-08-08 18:16:17 +00:00
|
|
|
EOF
|
|
|
|
|