daocloud.conf 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. [base]
  2. ;库来源 可以为空
  3. library = daocloud.io/
  4. path = {base}
  5. [mysql]
  6. num = 1
  7. image = library/mysql:5.7.8-rc
  8. port = 3399:3306
  9. volumes = {path}conf/mysql/config:/etc/mysql/conf.d,{path}mysql/{name}/data:/var/lib/mysql
  10. environment = MYSQL_ROOT_PASSWORD=123456
  11. [php]
  12. num = 1
  13. image = library/php:5.6.25-fpm-alpine
  14. link = mysql{num}:mysql{num}
  15. volumes_from = mysql{num}
  16. volumes = {path}web:/var/www/html
  17. [nginx]
  18. num = 1
  19. image = library/nginx:stable-alpine
  20. port = 80:80
  21. link = php{num}:php{num}
  22. volumes_from = php{num}
  23. volumes = {path}web:/www,{path}nginx/config:/etc/nginx/conf.d,{path}nginx/{name}/logs:/var/log/nginx
  24. [gogs]
  25. num = 1
  26. image = daocloud/gogs:latest
  27. port = 10022:22,3000:3000
  28. link = mysql{num}:mysql{num}
  29. volumes_from = mysql{num}
  30. volumes = {path}gogs:/data
  31. ;私人仓库
  32. [registry]
  33. num = 1
  34. image = library/registry:latest
  35. port = 5001:5000
  36. volumes = {path}registry/auth:/auth,{path}registry/certs:/certs,{path}registry/data:/var/lib/registry
  37. environment = REGISTRY_AUTH=htpasswd,"REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm",REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd
  38. entrypoint = htpasswd
  39. command = -Bbn rabin ilyxdd > {path}registry/auth/htpasswd
  40. ;REGISTRY_HTTP_TLS_CERTIFICATE=/certs/registry.crt,REGISTRY_HTTP_TLS_KEY=/certs/registry.key
  41. [#memcached]
  42. num = 1
  43. image = library/memcached:alpine
  44. [#redis]
  45. num = 1
  46. image = library/redis:alpine
  47. [#python]
  48. num = 1
  49. image = library/python:alpine
  50. [#golang]
  51. num = 1
  52. image = library/golang:alpine
  53. [#alpine]
  54. num = 1
  55. image = library/alpine:latest
  56. [#ubuntu]
  57. num = 1
  58. image = library/ubuntu:latest