DokployD
Dokploy13mo ago
6 replies
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
Learn how to use Docker Compose with Dokploy
Example | Dokploy
Was this page helpful?