docker-compose.solr.yaml 550 Bytes
Newer Older
Thomas Löffler's avatar
Thomas Löffler committed
1
version: '3.6'
Boris Schauer's avatar
Boris Schauer committed
2
3

services:
Thomas Löffler's avatar
Thomas Löffler committed
4
5
  solr:
    container_name: ddev-${DDEV_SITENAME}-solr
6
    image: typo3solr/ext-solr:11.0.3
Thomas Löffler's avatar
Thomas Löffler committed
7
    restart: "no"
Thomas Löffler's avatar
Thomas Löffler committed
8
    expose:
Thomas Löffler's avatar
Thomas Löffler committed
9
      - 8983
Boris Schauer's avatar
Boris Schauer committed
10
11
12
13
    labels:
      com.ddev.site-name: ${DDEV_SITENAME}
      com.ddev.approot: $DDEV_APPROOT
    environment:
Thomas Löffler's avatar
Thomas Löffler committed
14
15
      - VIRTUAL_HOST=$DDEV_HOSTNAME
      - HTTP_EXPOSE=8983
Boris Schauer's avatar
Boris Schauer committed
16
    volumes:
Thomas Löffler's avatar
Thomas Löffler committed
17
      - "./solr:/opt/solr/server/solr"
Boris Schauer's avatar
Boris Schauer committed
18
19
  web:
    links:
20
21
22
23
24
25
      - solr

volumes:
  # solr is a persistent Docker volume for this project's solr data
  # the volume will be named ddev-<project>_solr
  solr: