docker-compose.yml

35 lines | 825 B Blame History Raw Download
version: "3"
services:
  application:
    build: .
    container_name: shopizer
    environment:
      - TRACER_SERIALISE_INTERNALS=false
      - TRACER_VERBOSE=true
      - TRACER_ENABLE=true
      - TRACER_TRACES=/caching-approaches-comparison/applications/traces/shopizer
    volumes:
      - application:/application
      - /root/.m2:/root/.m2
      - ../../../:/caching-approaches-comparison
    restart: unless-stopped
    ports:
      - 8080:8080
    logging:
      options:
        max-size: "10m"
        max-file: "10"
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.5.2
    expose:
      - 9200
      - 9300
    environment:
      discovery.type: single-node
    restart: unless-stopped
    logging:
      options:
        max-size: "10m"
        max-file: "10"
volumes:
  application: