Newer
Older
reseda-search / docker-compose.debug.yml
version: "3"

services:
  api:
    image: node:16.15.0-alpine3.15
    ports:
      - 3000:3000
    environment:
      - http_proxy
      - https_proxy
      - no_proxy
      - NODE_ENV=development
      - APP_HOST
      - APP_PORT
      - ELASTICSEARCH_SCHEME
      - ELASTICSEARCH_HOST=elastic
      - ELASTICSEARCH_PORT
      - ELASTICSEARCH_USERNAME
      - ELASTICSEARCH_PASSWORD=${ELASTICSEARCH_PASSWORD:-changeme}
      - RESEDA_EMPLOYEES_INDEX
      - RESEDA_STRUCTURES_INDEX
      - PARAMS_MAX_SIZE
      - PARAMS_DEFAULT_SIZE
      - RESEDA_DOC_URL
    volumes:
      - .:/app
    working_dir: /app
    networks:
      - reseda-search
    restart: "no"
    command: npm run dev

  elastic:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.14.1
    ports:
      - 9200:9200
      - 9300:9300
    environment:
      - http_proxy
      - https_proxy
      - xpack.security.enabled=false
      - discovery.type=single-node
      - ELASTIC_PASSWORD=${ELASTICSEARCH_PASSWORD:-changeme}
    ulimits:
      memlock:
        soft: -1
        hard: -1
    mem_limit: 4g
    volumes:
      - ./data/elasticsearch/data:/usr/share/elasticsearch/data
    networks:
      - reseda-search
    restart: unless-stopped

networks:
  reseda-search:
    driver: bridge