generated from ddev/ddev-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.ibexa-solr.yaml
39 lines (37 loc) · 1.37 KB
/
docker-compose.ibexa-solr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# DDEV Apache Solr recipe file.
#ddev-generated
services:
solr:
# Name of container using standard ddev convention
container_name: ddev-${DDEV_SITENAME}-solr
# The solr docker image is at https://hub.docker.com/_/solr/
# and code at https://github.com/docker-solr/docker-solr
# README: https://github.com/docker-solr/docker-solr/blob/master/README.md
# It's almost impossible to work with it if you don't read the docs there
image: solr:8
restart: "no"
# Solr is served from this port inside the container.
expose:
- 8983
# These labels ensure this service is discoverable by ddev.
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
environment:
# This defines the host name the service should be accessible from. This
# will be sitename.ddev.site.
- VIRTUAL_HOST=$DDEV_HOSTNAME
# HTTP_EXPOSE exposes http traffic from the container port 8983
# to the host port 8983 vid ddev-router reverse proxy.
- HTTP_EXPOSE=8983:8983
volumes:
- solr:/var/solr
- ./solr:/solr-conf
- ".:/mnt/ddev_config"
- "./solr/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d"
external_links:
- "ddev-router:${DDEV_SITENAME}.${DDEV_TLD}"
volumes:
# solr is a persistent Docker volume for solr data
solr:
name: "ddev-${DDEV_SITENAME}_solr"