D
Dokploy•4mo ago
Ppang0405

Deploy Mellisearch use docker compose

I am a newbie. I follow this guide https://docs.dokploy.com/docs/core/docker-compose/example but when I create a domain point to port 7700, the page shows 404 not found does anyone know what thing went wrong here?
version: '3.8'

services:
meilisearch:
image: getmeili/meilisearch:v1.12
ports:
- "7700:7700"
environment:
- MEILI_MASTER_KEY=oqPwzIn5hK3t$O # Change this in production
- MEILI_NO_ANALYTICS=true
- MEILI_ENV=production
volumes:
- meilisearch_data:/meili_data
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--spider", "http://localhost:7700/health"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- dokploy-network
labels:
- "traefik.enable=true"
# - "traefik.http.routers.meilisearch.rule=Host(`your-domain.com`)"
- "traefik.http.routers.meilisearch.entrypoints=websecure"
- "traefik.http.routers.meilisearch.tls.certResolver=letsencrypt"
- "traefik.http.services.meilisearch.loadbalancer.server.port=7700"

volumes:
meilisearch_data:
networks:
dokploy-network:
external: true
version: '3.8'

services:
meilisearch:
image: getmeili/meilisearch:v1.12
ports:
- "7700:7700"
environment:
- MEILI_MASTER_KEY=oqPwzIn5hK3t$O # Change this in production
- MEILI_NO_ANALYTICS=true
- MEILI_ENV=production
volumes:
- meilisearch_data:/meili_data
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--spider", "http://localhost:7700/health"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- dokploy-network
labels:
- "traefik.enable=true"
# - "traefik.http.routers.meilisearch.rule=Host(`your-domain.com`)"
- "traefik.http.routers.meilisearch.entrypoints=websecure"
- "traefik.http.routers.meilisearch.tls.certResolver=letsencrypt"
- "traefik.http.services.meilisearch.loadbalancer.server.port=7700"

volumes:
meilisearch_data:
networks:
dokploy-network:
external: true
Example | Dokploy
Learn how to use Docker Compose with Dokploy
5 Replies
Vlad
Vlad•4mo ago
I guess the docs is outdated as you can now interact with domains though the domains tab, so remove these labels and add a domain there. Also make sure you redeploy the app every time you do something with domains
DJKnaeckebrot
DJKnaeckebrot•4mo ago
version: '3.8'

services:
meilisearch:
image: getmeili/meilisearch:v1.12
ports:
- 7700
environment:
- MEILI_MASTER_KEY=2CQyqygzkkjQxlrFTX3kYdcLc4VK5f6svnpMPeO3Z-o
- MEILI_NO_ANALYTICS=true
- MEILI_ENV=production
volumes:
- meilisearch_data:/meili_data
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--spider", "http://localhost:7700/health"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- dokploy-network

volumes:
meilisearch_data:
version: '3.8'

services:
meilisearch:
image: getmeili/meilisearch:v1.12
ports:
- 7700
environment:
- MEILI_MASTER_KEY=2CQyqygzkkjQxlrFTX3kYdcLc4VK5f6svnpMPeO3Z-o
- MEILI_NO_ANALYTICS=true
- MEILI_ENV=production
volumes:
- meilisearch_data:/meili_data
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--spider", "http://localhost:7700/health"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- dokploy-network

volumes:
meilisearch_data:
Than navigate to domain, click on Add Domain, select ServiceName (if it does not show press the refresh button right next to it) Let traefik create a domain (icon to the right) or use your own Path to / Port to 7700 Select if you want to https or not and that create and deploy the whole thing 🙂
Ppang0405
Ppang0405OP•4mo ago
I did copy your docker compose above, hit save click on Domains tab, add new domain, hit save Hit deploy open that domain and I still got "404 page not found" 😦
DJKnaeckebrot
DJKnaeckebrot•4mo ago
Just saw we have a template for that haha why don’t you use that, that works I just tested it
Ppang0405
Ppang0405OP•4mo ago
oh we have it, let me upgrade my Dokploy server, It's in version 0.12 upgraded to Dokploy 0.17.2 and tried meilisearch template and it works. Thanks everyone.🔥

Did you find this page helpful?