Created
May 22, 2021 16:05
-
-
Save dineshsonachalam/fae6f16943a6cd20ce31e0bd144bb52d to your computer and use it in GitHub Desktop.
Generated from docker-compose.yaml by https://goanyjson.dineshsonachalam.com/. Gist created by user: dineshsonachalam.
This file contains hidden or 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
{ | |
"networks": { | |
"frontend": null | |
}, | |
"services": { | |
"backend": { | |
"depends_on": [ | |
"elasticsearch" | |
], | |
"environment": [ | |
"PYTHONUNBUFFERED=1" | |
], | |
"image": "dineshsonachalam/go-any-json-backend:latest", | |
"networks": [ | |
"frontend" | |
], | |
"ports": [ | |
"8000:8000" | |
] | |
}, | |
"elasticsearch": { | |
"environment": [ | |
"discovery.type=single-node" | |
], | |
"healthcheck": { | |
"retries": 6, | |
"test": [ | |
"CMD", | |
"curl", | |
"-s", | |
"-f", | |
"http://localhost:9200/_cat/health" | |
] | |
}, | |
"image": "docker.elastic.co/elasticsearch/elasticsearch:7.12.0", | |
"networks": [ | |
"frontend" | |
], | |
"ports": [ | |
"9200:9200" | |
], | |
"restart": "always", | |
"volumes": [ | |
"./ES_DATA:/usr/share/elasticsearch/data" | |
] | |
} | |
}, | |
"version": "3" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment