Last active
August 15, 2016 22:57
Example `docker-compose` file for a simple three tier web app
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
# This is a basic example `docker-compose.yml` file using a 3 tier web app. | |
service: api | |
image: apache:latest | |
links: | |
- db:database | |
service: frontend | |
image: ubuntu:latest | |
links: | |
- api | |
ports: | |
- "80:8080" | |
service: db | |
image: redis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment