party-management/docker-compose.sh

59 lines
1.4 KiB
Bash
Raw Normal View History

#!/bin/bash
cat <<EOF
version: '2'
services:
${SERVICE_NAME}:
image: ${BUILD_IMAGE}
volumes:
2016-08-12 17:33:39 +00:00
- .:$PWD
- $HOME/.cache:/home/$UNAME/.cache
working_dir: $PWD
command: /sbin/init
depends_on:
- machinegun
- shumway
dominant:
image: dr.rbkmoney.com/rbkmoney/dominant:f3c72168d9dfeb4da241d4eb5d6a29787c81faef
command: /opt/dominant/bin/dominant foreground
depends_on:
- machinegun
machinegun:
image: dr.rbkmoney.com/rbkmoney/machinegun:a48f9e93dd5a709d5f14db0c9785d43039282e86
command: /opt/machinegun/bin/machinegun foreground
volumes:
- ./test/machinegun/sys.config:/opt/machinegun/releases/0.1.0/sys.config
shumway:
image: dr.rbkmoney.com/rbkmoney/shumway:cd00af9d70b28a7851295fca39bdeded5a3606b0
entrypoint: |
java
-Xmx512m
-jar
/opt/shumway/shumway.jar
command: |
--spring.datasource.url=jdbc:postgresql://shumway_psql:5432/shumway
--spring.datasource.username=shumway
--spring.datasource.password=shumway
depends_on:
- shumway_psql
restart: always
shumway_psql:
image: dr.rbkmoney.com/rbkmoney/postgres:9.6
environment:
- POSTGRES_DATABASE=shumway
- POSTGRES_USER=shumway
- POSTGRES_PASSWORD=shumway
networks:
default:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "true"
com.docker.network.bridge.enable_ip_masquerade: "false"
EOF