version: '3'
services:
  db:
    image: postgres:13.5
    volumes:
      - postgres_data:/var/lib/postgresql/data
    environment:
      - POSTGRES_PASSWORD=password
    ports:
      - "5432:5432"
  elastic:
    image: elasticsearch:6.8.22
    volumes:
      - elastic_data:/usr/share/elasticsearch/data
    environment:
      - discovery.type=single-node
    ports:
      - "9200:9200"
      - "9300:9300"
  web:
    build: .
    command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
    environment:
      - SEARCHBOX_URL=elastic
    volumes:
      - .:/speakerinnen_liste
      - bundle:/bundle
    ports:
      - "3000:3000"
    depends_on:
      - db
      - elastic
    tty: true
    stdin_open: true
volumes:
  bundle:
  postgres_data:
  elastic_data:

version: '3'
services:
  db:
    image: postgres:13.5
    volumes:
      - postgres_data:/var/lib/postgresql/data
    environment:
      - POSTGRES_PASSWORD=password
    ports:
      - "5432:5432"
  elastic:
    image: elasticsearch:7.17.0
    volumes:
      - elastic_data:/usr/share/elasticsearch/data
    environment:
      - discovery.type=single-node
    ports:
      - "9200:9200"
      - "9300:9300"
  web:
    build: .
    command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
    environment:
      - SEARCHBOX_URL=elastic
    volumes:
      - .:/speakerinnen_liste
      - bundle:/bundle
    ports:
      - "3000:3000"
    depends_on:
      - db
      - elastic
    tty: true
    stdin_open: true
volumes:
  bundle:
  postgres_data:
  elastic_data:

Upgrade elastic to work with Apple M1
Upgrade elastic to work with Apple M1
