mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
ea589b1276
Former-commit-id: 491a1001aff9fc63a0d79efbfee6a78ca711f07c |
||
---|---|---|
.. | ||
.dokerignore | ||
docker-compose.yml | ||
Dockerfile | ||
go.mod | ||
main.go | ||
README.md |
Docker Example
The only requirement for this example is Docker.
Docker Compose
The Docker Compose is pre-installed with Docker for Windows. For linux please follow the steps described at: https://docs.docker.com/compose/install/.
Build and run the application for linux arch and expose it on http://localhost:8080.
$ docker-compose up
See docker-compose file.
Without Docker Compose
- Build the image as "myapp" (docker build)
- Run the image and map exposed ports (-p 8080:8080)
- Attach the interactive mode so CTRL/CMD+C signals are respected to shutdown the Iris Server (-it)
- Cleanup the image on finish (--rm)
$ docker build -t myapp .
$ docker run --rm -it -p 8080:8080 myapp:latest