generated from ddev/ddev-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.typesense.yaml
40 lines (40 loc) · 1.21 KB
/
docker-compose.typesense.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
40
#ddev-generated
services:
typesense:
container_name: ddev-${DDEV_SITENAME}-typesense
hostname: ${DDEV_SITENAME}-typesense
image: typesense/typesense:0.25.1
command: '--data-dir /data --enable-cors'
networks: [default, ddev_default]
restart: "on-failure"
environment:
- TYPESENSE_API_KEY=${TYPESENSE_API_KEY:-ddev}
ports:
- "8108:8108"
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
volumes:
- "typesense:/data"
- ".:/mnt/ddev_config"
# This links the Typesense service to the web service defined in the main
# docker-compose.yml, allowing applications running inside the web container to
# access the Typesense service at http://typesense:8108
web:
links:
- typesense:typesense
typesense_admin:
container_name: ddev-${DDEV_SITENAME}-typesense-admin
image: ghcr.io/bfritscher/typesense-dashboard:latest
restart: "on-failure"
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
ports:
- "8109:80"
environment:
- VIRTUAL_HOST=typesense.$DDEV_HOSTNAME
external_links:
- "ddev-router:${DDEV_SITENAME}.${DDEV_TLD}"
volumes:
typesense: