docker-compose.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. version: '3'
  2. networks:
  3. internal-pod:
  4. internal: true
  5. external-pod:
  6. internal: false
  7. services:
  8. mariadb:
  9. image: mariadb:latest
  10. environment:
  11. MYSQL_ROOT_PASSWORD: rootpassfordev
  12. MYSQL_DATABASE: dolibarr
  13. ports:
  14. - "3306:3306"
  15. networks:
  16. - internal-pod
  17. - external-pod
  18. phpmyadmin:
  19. image: phpmyadmin/phpmyadmin
  20. environment:
  21. PMA_HOST: mariadb
  22. depends_on:
  23. - mariadb
  24. ports:
  25. - "8080:80"
  26. networks:
  27. - internal-pod
  28. - external-pod
  29. web:
  30. build: .
  31. environment:
  32. HOST_USER_ID: $HOST_USER_ID
  33. PHP_INI_DATE_TIMEZONE: $PHP_INI_DATE_TIMEZONE
  34. PHP_INI_MEMORY_LIMIT: $PHP_INI_MEMORY_LIMIT
  35. volumes:
  36. - ../../htdocs:/var/www/html/
  37. - ../../documents:/var/documents
  38. ports:
  39. - "80:80"
  40. - "9000:9000"
  41. depends_on:
  42. - mariadb
  43. - mail
  44. networks:
  45. - internal-pod
  46. - external-pod
  47. extra_hosts:
  48. - "localhost.localdomain:127.0.0.1"
  49. - "host.docker.internal:host-gateway"
  50. mail:
  51. image: maildev/maildev
  52. ports:
  53. - "8081:80"
  54. - "25:25"
  55. networks:
  56. - internal-pod
  57. - external-pod