Guest User

Untitled

a guest
Oct 10th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. verison: '2'
  2. services:
  3. server:
  4. image: rancher/server:v1.6.22
  5. restart: always
  6. ports:
  7. - "80:8080"
  8. links:
  9. - mysql
  10. environment:
  11. - CATTLE_DB_CATTLE_MYSQL_HOST=mysql
  12. - CATTLE_DB_CATTLE_MYSQL_PORT=3306
  13. - CATTLE_DB_CATTLE_MYSQL_NAME=cattle
  14. - CATTLE_DB_CATTLE_USERNAME=cattle
  15. - CATTLE_DB_CATTLE_PASSWORD=cattle
  16. mysql:
  17. image: mysql:5.7
  18. restart: always
  19. volumes:
  20. - /mysql:/var/lib/mysql
  21. environment:
  22. - MYSQL_ROOT_PASSWORD=cattle
  23. - MYSQL_DATABASE=cattle
  24. - MYSQL_USER=cattle
  25. - MYSQL_PASSWORD=cattle
  26. cleanup:
  27. image: rancher/cleanup-1-1:v0.1.2
  28. links:
  29. - mysql
  30. commands:
  31. - --db-host
  32. - mysql
  33. labels:
  34. cron.schedule: "0 0 * * *"
  35. cron.action: restart
  36. cron:
  37. image: rancher/container-crontab:v0.5.0
  38. restart: always
  39. volumes:
  40. - /var/run/docker.sock:/var/run/docker.sock
Add Comment
Please, Sign In to add comment