Skip to content

Instantly share code, notes, and snippets.

@dineshsonachalam
Created May 22, 2021 12:50
Show Gist options
  • Save dineshsonachalam/3cd4ed5ddd71718622a033c273f19d2f to your computer and use it in GitHub Desktop.
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.
{
"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