Created
December 4, 2017 01:42
-
-
Save ibnesayeed/7c47a83c1eafb5965cd57d05173f1e1e to your computer and use it in GitHub Desktop.
A compose file to orchestrate two docker services together
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
| version: '3' | |
| services: | |
| api: | |
| image: api:python | |
| build: ./api | |
| ports: | |
| - "5000:5000" | |
| web: | |
| image: php:7-apache | |
| ports: | |
| - "80:80" | |
| environment: | |
| - API_ENDPOINT=http://api:5000/api/ | |
| volumes: | |
| - ./www:/var/www/html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment