docker-compose.yml 300 B

123456789101112131415161718192021222324
  1. version: '2'
  2. services:
  3. apache:
  4. container_name: apache
  5. build: ./apache
  6. ports:
  7. - 80:80
  8. links:
  9. - php
  10. volumes_from:
  11. - app
  12. php:
  13. container_name: php
  14. build: ./php
  15. app:
  16. container_name: app
  17. build : ./app
  18. volumes:
  19. - ./app/code:/var/www