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
1.0 KiB

  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. # network_mode: "bridge"
  36. rancher-server:
  37. container_name: rancher-server
  38. image: "rancher/server"
  39. restart: unless-stopped
  40. command: --db-host db
  41. depends_on:
  42. - "mysql"
  43. ports:
  44. - 8888:8080
  45. environment:
  46. DB_HOST: db
  47. links:
  48. - mysql:db