You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
982 B

  1. version: '3'
  2. services:
  3. mysql:
  4. container_name: mysql
  5. image: "mysql:5.7"
  6. restart: unless-stopped
  7. environment:
  8. MYSQL_ROOT_PASSWORD: example
  9. MYSQL_USER: cattle
  10. MYSQL_PASSWORD: cattle
  11. MYSQL_DATABASE: cattle
  12. volumes:
  13. - /docker/mysql:/var/lib/mysql
  14. mysql-admin:
  15. container_name: mysql-admin
  16. image: "phpmyadmin/phpmyadmin"
  17. restart: unless-stopped
  18. ports:
  19. - 8222:80
  20. environment:
  21. PMA_HOST: db
  22. PMA_PORT: 3306
  23. depends_on:
  24. - "mysql"
  25. links:
  26. - mysql:db
  27. fluent-log:
  28. container_name: fluent-log
  29. image: "fluent/fluentd"
  30. ports:
  31. - 24224:24224
  32. - 24224:24224/udp
  33. volumes:
  34. - /docker/log:/fluentd/log
  35. rancher-server:
  36. container_name: rancher-server
  37. image: "rancher/server"
  38. restart: unless-stopped
  39. command: --db-host db
  40. depends_on:
  41. - "mysql"
  42. ports:
  43. - 8888:8080
  44. environment:
  45. DB_HOST: db
  46. links:
  47. - mysql:db