PHP-Flask Example
Run a live example of using Docker Compose on the Educative platform!
Run the following example:
version: '3' services: product-service: build: ./product volumes: - ./product:/usr/src/app ports: - 5001:80 website: image: php:apache volumes: - ./website:/var/www/html ports: - 5000:80 depends_on: - product-service
Note: We are using a modified Flask-PHP example from here.