Skip to main content
100%

Example of docker-compose.yml

✓ Published0🌍 Public
SServuc
Last edited Aug 7, 2018
Created on Aug 7, 2018

This example shows a minimal Docker Compose setup that declares two services for a web application. The `docker-compose.yml` file defines a `web` service built from the local directory, which publishes port 5000 to the host, and a `redis` service using the official `redis:alpine` image. The file relies on the Compose specification’s `version`, `services`, `build`, `ports`, and `image` keys, with a YAML structure that maps service names to their configuration. It demonstrates the core pattern of linking an application container to a backing data store without additional network or volume definitions, based on the example from Docker’s official getting-started documentation.

AI-generated description

Similar vizzes