Last active
August 15, 2016 22:57
-
-
Save timfallmk/ed5fd3afc58832c4185496a72f5be97a to your computer and use it in GitHub Desktop.
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