Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/callicoder/go-docker-compose
Golang Docker Compose Example
https://github.com/callicoder/go-docker-compose
docker docker-compose docker-image go golang
Last synced: 2 months ago
JSON representation
Golang Docker Compose Example
- Host: GitHub
- URL: https://github.com/callicoder/go-docker-compose
- Owner: callicoder
- Created: 2018-12-23T11:25:28.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-15T20:07:57.000Z (almost 3 years ago)
- Last Synced: 2024-09-27T01:52:22.265Z (3 months ago)
- Topics: docker, docker-compose, docker-image, go, golang
- Language: Go
- Homepage: https://www.callicoder.com/docker-compose-multi-container-orchestration-golang/
- Size: 6.84 KB
- Stars: 113
- Watchers: 5
- Forks: 66
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-docker-compose
Example application demonstrating how to use Docker compose with Go applications. The repository contains a simple application written in Golang that contains a single API to display the "Quote of the day".
The app fetches the quote of the day from a public API hosted at `http://quotes.rest/`, then it caches the result in Redis. For subsequent API calls, the app will return the result from Redis cache instead of fetching it from the public API.
Clone the repository and type the following command to start the app -
```bash
$ docker-compose up
``````bash
$ curl http://localhost:8080/qod
If I work as hard as I can, I wonder how much I can do in a day?
```Read the Tutorial: [Docker Compose: Defining and running multi-container docker applications](http://localhost:1313/docker-compose-multi-container-orchestration-golang/)