web.conf 859 B

123456789101112131415161718192021222324252627282930313233
  1. [base]
  2. ;库来源
  3. library = docker.shemic.com/
  4. path = {base}
  5. network = iot
  6. [mysql]
  7. num = 1
  8. image = db/mysql
  9. port = 3309:3306
  10. volumes = {path}conf/db/mysql:/etc/mysql,/mysql/{name}/data:/var/lib/mysql
  11. environment = MYSQL_ROOT_PASSWORD=123456
  12. [php]
  13. num = 1
  14. #image = dev/php
  15. image = dev/php/mosquitto
  16. port = 8082:8080
  17. #server-memcached:server-memcached
  18. link = [mysql]{num}:[mysql]{num}
  19. volumes_from = [mysql]{num}
  20. volumes = {path}web:/www,{path}conf/php:/etc/php5,/etc/hosts:/etc/hosts.main
  21. #host = test:127.0.0.1,test1:127.0.0.1
  22. # 容器里对宿主机提供的指令的别名,可以直接用php -i访问容器中的php命令了
  23. alias = php,composer
  24. [nginx]
  25. num = 1
  26. image = web/nginx
  27. port = 80:80,443:443
  28. link = [php]{num}:[php]{num}
  29. volumes_from = [php]{num}
  30. volumes = {path}web:/www,{path}conf/nginx:/etc/nginx,{path}logs/nginx/{name}/logs:/var/log/nginx