docker-compose.yml
author ymh <ymh.work@gmail.com>
Wed, 01 Aug 2018 22:21:40 +0200
changeset 584 b5f3daa86400
parent 534 f65361a277aa
permissions -rw-r--r--
again, correct image destination filename

version: '2.1'

services:

  elasticsearch:
    image: elasticsearch:1.7-alpine
    environment:
      - "transport.host=127.0.0.1"
      - "http.cors.enabled=true"
      - "http.cors.allow-origin=*"
      - "http.cors.allow-headers=Authorization"
      - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
    ports:
      - 9200:9200
    volumes:
      - /usr/share/elasticsearch/data

  postgres:
    image: postgres:alpine
    ports:
      - 5432:5432
    volumes:
      - /var/lib/postgresql/data