Skip to content

Instantly share code, notes, and snippets.

@jamesmeneghello
Last active August 13, 2018 06:24
Show Gist options
  • Select an option

  • Save jamesmeneghello/e8baea51c24f4bdec1b6ea26e24c3a47 to your computer and use it in GitHub Desktop.

Select an option

Save jamesmeneghello/e8baea51c24f4bdec1b6ea26e24c3a47 to your computer and use it in GitHub Desktop.
version: '3.5'
services:
postgres:
image: postgres:9.5.6-alpine
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 30s
max_attempts: 5
window: 120s
volumes:
- postgres:/var/lib/postgresql/data
restart: always
ports:
- "5432:5432"
ignite:
image: apacheignite/ignite
depends_on:
- postgres
ports:
- "10800:10800"
- "11211:11211"
- "47100:47100"
- "47500:47500"
- "49112:49112"
volumes:
- ignite-persistence:/opt/ignite/apache-ignite-fabric-2.3.0-bin/work/db
environment:
CONFIG_URI: "https://git.optika.com.au/snippets/5/raw"
EXTERNAL_LIBS: "https://jdbc.postgresql.org/download/postgresql-42.2.4.jar"
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 30s
max_attempts: 10
window: 180s
volumes:
ignite-persistence:
postgres:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment