Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple Services
version: '3'
volumes:
elastic_data: {}
mongo_data: {}
neo4j_data: {}
postgres_data: {}
rabbitmq_data: {}
services:
datadog:
image: datadog/agent:latest
env_file: .env
environment:
- DOCKER_CONTENT_TRUST=1
links:
- redis
ports:
- 8126
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /proc/:/host/proc/:ro
- /sys/fs/cgroup:/host/sys/fs/cgroup:ro
elasticsearch:
env_file: .env
image: docker.elastic.co/elasticsearch/elasticsearch
# environment:
# - bootstrap.memory_lock=true
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- elastic_data:/usr/share/elasticsearch/data
ports:
- 9200
mongo:
env_file: .env
restart: always
image: mongo:latest
ports:
- 27017
volumes:
- mongo_data:/data/db
neo4j:
env_file: .env
restart: always
image: neo4j:latest
ports:
- 7687
# - 7474
volumes:
- neo4j_data:/data
# Uncomment port and below lines to make n4j browser accessible
# labels:
# - traefik.port=7474
# - traefik.enable=true
# - traefik.backend.domain=${NEO4J_BROWSER_HOST}
# - traefik.frontend.rule=Host:${NEO4J_BROWSER_HOST}
postgres:
env_file: .env
restart: always
image: postgres:latest
ports:
- 5432
volumes:
- postgres_data:/var/lib/postgresql/data/
rabbitmq:
env_file: .env
restart: always
image: rabbitmq:latest
ports:
- 5672
volumes:
- rabbitmq_data:/data
redis:
env_file: .env
restart: always
image: redis:latest
ports:
- 6379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.