Created
May 22, 2021 12:50
-
-
Save dineshsonachalam/3cd4ed5ddd71718622a033c273f19d2f to your computer and use it in GitHub Desktop.
Generated from docker-compose.yaml by http://localhost:3000/. 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