generated from ddev/ddev-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
900bc55
commit acb56af
Showing
2 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,32 @@ | ||
#ddev-generated | ||
services: | ||
addon-template: | ||
typesense: | ||
container_name: ddev-${DDEV_SITENAME}-typesense | ||
hostname: ${DDEV_SITENAME}-typesense | ||
image: typesense/typesense:0.25.1 | ||
command: '--data-dir /data --api-key=test --enable-cors' | ||
networks: [default, ddev_default] | ||
restart: "no" | ||
environment: | ||
- VIRTUAL_HOST=$DDEV_HOSTNAME | ||
ports: | ||
- "8108:8108" | ||
labels: | ||
com.ddev.site-name: ${DDEV_SITENAME} | ||
com.ddev.approot: $DDEV_APPROOT | ||
volumes: | ||
- "./typesense-data:/data" | ||
- "typesense:/data" | ||
- ".:/mnt/ddev_config" | ||
typesense_admin: | ||
container_name: typesense_admin | ||
image: ghcr.io/lewynation/typesense-admin-dashboard:latest | ||
restart: always | ||
ports: | ||
- "3005:3000" | ||
external_links: | ||
- "ddev-router:${DDEV_SITENAME}.${DDEV_TLD}" | ||
volumes: | ||
# typesense is a persistent Docker volume for typesense data | ||
# The persistent volume should have the same name as the service so it can be deleted | ||
# when the project is deleted. | ||
typesense: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
name: typesense | ||
|
||
pre_install_commands: | ||
- mkdir $(DDEV_APPROOT)/typesense-data | ||
|
||
project_files: | ||
- docker-compose.typesense.yaml | ||
|
||
removal_actions: | ||
- rm $(DDEV_APPROOT)/typesense-data |