docker-compose.yml 593 B

12345678910111213141516171819202122232425262728
  1. version: "2"
  2. services:
  3. myservice:
  4. build: ./
  5. labels:
  6. - "traefik.backend=myservice"
  7. - "traefik.frontend.rule=Host:myservice.docker.localhost"
  8. environment:
  9. - MYSQL_HOST=mysql
  10. - APACHE_SERVER_NAME=myservice.docker.localhost
  11. - PHP_SHORT_OPEN_TAG=On
  12. - PHP_ERROR_REPORTING=E_ALL
  13. - PHP_DISPLAY_ERRORS=On
  14. - PHP_HTML_ERRORS=On
  15. - PHP_XDEBUG_ENABLED=true
  16. networks:
  17. - default
  18. volumes:
  19. - ./:/app
  20. cap_add:
  21. - SYS_TIME
  22. - SYS_NICE
  23. networks:
  24. default:
  25. external:
  26. name: docker_docker-localhost