📜  来自其他容器的 python elasticsearch docker - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:53.941000             🧑  作者: Mango

代码示例1
version: '3'

services:
  elasticsearch:
    build: elasticsearch/
    ports: 
      - 9200:9200
    networks:
      - deploy_network
    container_name: elasticsearch

  indexer:
    build: indexer/
    depends_on:
      - elasticsearch
    networks:
      - deploy_network
    container_name: indexer

networks:
  deploy_network:
    driver: bridge