Skip to content

Instantly share code, notes, and snippets.

@ibnesayeed
Created December 4, 2017 01:42
Show Gist options
  • Select an option

  • Save ibnesayeed/7c47a83c1eafb5965cd57d05173f1e1e to your computer and use it in GitHub Desktop.

Select an option

Save ibnesayeed/7c47a83c1eafb5965cd57d05173f1e1e to your computer and use it in GitHub Desktop.
A compose file to orchestrate two docker services together
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