Last active
August 7, 2023 10:46
-
-
Save jahrmando/b0f6cd2cbdca7b223fbca0c2a52012d3 to your computer and use it in GitHub Desktop.
Docker Compose - Mongo, Redis, Elasticsearch, postgresql96
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
database: | |
image: 'mongo:3.6' | |
command: --serviceExecutor adaptive | |
container_name: 'mongodb-service' | |
volumes: | |
- mongo_data:/data/db | |
ports: | |
- '27017-27019:27017-27019' | |
networks: | |
- myintranet | |
redis: | |
image: 'docker.io/bitnami/redis:6.0-debian-10' | |
container_name: 'redis-service' | |
environment: | |
- ALLOW_EMPTY_PASSWORD=yes | |
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL | |
ports: | |
- '6379:6379' | |
volumes: | |
- redis_data:/bitnami/redis/data | |
networks: | |
- myintranet | |
elasticsearch: | |
image: 'docker.elastic.co/elasticsearch/elasticsearch:6.8.2' | |
container_name: 'es-service' | |
environment: | |
- discovery.type=single-node | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ports: | |
- 9200:9200 | |
volumes: | |
- es_data:/usr/share/elasticsearch/data | |
networks: | |
- myintranet | |
postgresql96: | |
image: 'postgres:9.6.20-alpine' | |
restart: always | |
container_name: 'postgresql96-service' | |
environment: | |
- "POSTGRES_PASSWORD=devtest" | |
ports: | |
- 5432:5432 | |
volumes: | |
- psql_data:/var/lib/postgresql/data | |
networks: | |
- myintranet | |
volumes: | |
mongo_data: | |
driver: local | |
redis_data: | |
driver: local | |
es_data: | |
driver: local | |
psql_data: | |
driver: local | |
networks: | |
myintranet: | |
driver: bridge | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment