Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ItemAPI / Elastic / Redis Docker Compose File
version: '2'
services:
api:
container_name: search_web_admin_api
build:
context: .
environment:
ELASTICSEARCH_URL: "http://elastic:9200"
REDIS_URL: "redis://redis:6379"
MONGODB_URL: "mongodb://mongo:27017"
depends_on:
- elastic
- redis
- mongo
links:
- elastic:elastic
- redis:redis
- mongo:mongo
ports:
- "3000:3000"
elastic:
container_name: search_web_admin_index
image: elasticsearch
ports:
- "9200:9200"
- "9300:9300"
#volumes:
#- ./data/es:/usr/share/elasticsearch/data
#- ./es/config:/usr/share/elasticsearch/config
environment:
ES_JAVA_OPTS: -Xms512m -Xmx512m
redis:
container_name: search_web_admin_cache
image: redis
ports:
- "6379:6379"
mongo:
container_name: search_web_admin_data
image: mongo
ports:
- "27017:27017"
#volumes:
# - ./data/mongo:/data/db
#volumes:
# elastic_data:
# driver: local
# elastic_config:
# driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment