Skip to content

Commit ee63060

Browse files
committed
meilisearch
1 parent fd1edc4 commit ee63060

8 files changed

Lines changed: 43 additions & 199 deletions

File tree

apps/meilisearch/.env

Lines changed: 9 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,15 @@
1-
W9_REPO="wordpress"
2-
W9_DIST=community
3-
W9_VERSION="latest"
4-
5-
W9_POWER_PASSWORD="1PrMxExC45LsCT"
6-
7-
# Environments which for user settings when create application
8-
# Named expression: W9_xxx_xxx_SET, xxx refer to file fields
9-
W9_HTTP_PORT_SET=9001
10-
# W9_HTTPS_PORT_SET=9002
11-
# W9_DB_PORT_SET=3306
12-
# W9_SSH_PORT_SET=23
13-
W9_KEY_SET="dfsjdkjf77xjxcjcj"
14-
15-
#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
1+
W9_REPO=getmeili/meilisearch
2+
W9_DIST='community'
3+
W9_VERSION=v1.16
164

175
W9_ID=meilisearch
18-
19-
# W9_HTTP_PORT or W9_HTTPS_PORT is need at leaset and used for proxy for web application
20-
# Some container (e.g teleport) need HTTPS access, then need to set this pra
21-
W9_HTTP_PORT=80
22-
W9_HTTPS_PORT=81
23-
24-
W9_LOGIN_USER=admin
25-
# use https://1password.com/zh-cn/password-generator/ to genarate 14 bit password
26-
# this password can also use password file
27-
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
28-
W9_ADMIN_PATH="/wp-login"
29-
30-
# Container name's suffix must use one of the value
31-
W9_DB_EXPOSE="mysql,postgresql,mariadb,mongodb,redis"
32-
33-
# It is used when the application APP needs to set an external URL, which can be IP(or domain), IP:PORT
34-
# If have protocols, should be set it in the APP's ENV
35-
W9_URL=internet_ip:$W9_HTTP_PORT_SET
36-
# modifies W9_URL on init when it is true
37-
W9_URL_REPLACE=true
38-
6+
W9_HTTP_PORT=7700
7+
W9_HTTP_PORT_SET=9001
398
W9_NETWORK=websoft9
9+
W9_URL=internet_ip:$W9_HTTP_PORT_SET
4010

4111
#### ----------------------------------------------------------------------------------------- ####
4212

43-
44-
# Below environment is created by this app
45-
46-
WORDPRESS_DB_HOST=$W9_ID-mariadb
47-
WORDPRESS_DB_USER=wordpress #if use postgresql, it need set to postgres
48-
WORDPRESS_DB_PASSWORD=$W9_POWER_PASSWORD
49-
WORDPRESS_DB_NAME=wordpress
50-
51-
52-
#W9_NAME=""
53-
#W9_RCODE=""
13+
# Meilisearch specific configurations
14+
# Environment: development or production
15+
MEILI_ENV=development

apps/meilisearch/Dockerfile

Lines changed: 0 additions & 21 deletions
This file was deleted.

apps/meilisearch/Notes.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
1-
# Appname
2-
## FAQ
1+
# Meilisearch
2+
3+
4+
## add index
5+
6+
```
7+
curl \
8+
-X POST 'http://47.83.215.203:9001/indexes/movies/documents' \
9+
-H 'Content-Type: application/json' \
10+
--data-binary '[
11+
{ "id": 1, "title": "Justice League", "genre": ["Action", "Adventure"] },
12+
{ "id": 2, "title": "Wonder Woman", "genre": ["Action", "Fantasy"] },
13+
{ "id": 3, "title": "The Avengers", "genre": ["Action", "Sci-Fi"] },
14+
{ "id": 4, "title": "Inception", "genre": ["Action", "Sci-Fi", "Thriller"] },
15+
{ "id": 5, "title": "The Dark Knight", "genre": ["Action", "Crime", "Drama"] }
16+
]'
17+
```

apps/meilisearch/README.jinja2

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 16 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,28 @@
1-
# image,docs: https://hub.docker.com/_/wordpress/
1+
# image: https://hub.docker.com/r/getmeili/meilisearch
2+
# docs: https://www.meilisearch.com/docs
23

34
services:
4-
5-
wordpress:
6-
image: $W9_REPO:$W9_VERSION
5+
meilisearch:
6+
image: getmeili/meilisearch:${W9_VERSION}
77
container_name: $W9_ID
88
restart: unless-stopped
9-
#This is for access host from container
10-
# extra_hosts: ["host.docker.internal:host-gateway"]
11-
# command: |
12-
# /bin/bash -c "ping -c 3 host.docker.internal"
13-
logging:
14-
driver: "json-file"
15-
options:
16-
max-file: "5"
17-
max-size: 10m
18-
deploy:
19-
resources:
20-
limits:
21-
memory: 5g
22-
cpus: '0.7'
239
ports:
24-
- $W9_HTTP_PORT_SET:80
10+
- ${W9_HTTP_PORT_SET}:7700
2511
env_file: .env
26-
volumes:
27-
- wordpress:/var/www/html
28-
- ./src/php_exra.ini:/usr/local/etc/php/conf.d/php_exra.ini
29-
30-
mariadb:
31-
image: mariadb:10.4
32-
container_name: $W9_ID-mariadb
33-
restart: unless-stopped
34-
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --innodb_log_buffer_size=30M
35-
volumes:
36-
- mysql_data:/var/lib/mysql
3712
environment:
38-
MYSQL_DATABASE: $WORDPRESS_DB_NAME
39-
MYSQL_USER: $WORDPRESS_DB_USER
40-
MYSQL_PASSWORD: $W9_POWER_PASSWORD
41-
MYSQL_ROOT_PASSWORD: $W9_POWER_PASSWORD
13+
- MEILI_ENV=${MEILI_ENV}
14+
volumes:
15+
- meilisearch_data:/meili_data
16+
logging:
17+
driver: "json-file"
18+
options:
19+
max-file: "5"
20+
max-size: 10m
4221

4322
volumes:
44-
wordpress:
45-
mysql_data:
46-
23+
meilisearch_data:
24+
4725
networks:
4826
default:
49-
name: $W9_NETWORK
27+
name: ${W9_NETWORK}
5028
external: true

apps/meilisearch/src/nginx-proxy.conf.template

Lines changed: 0 additions & 57 deletions
This file was deleted.

apps/meilisearch/src/php_exra.ini

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/meilisearch/variables.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
{
99
"dist": "community",
1010
"version": [
11+
"v1.16",
1112
"latest"
1213
]
1314
}

0 commit comments

Comments
 (0)