Advertisement
Guest User

Untitled

a guest
Apr 18th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4. web:
  5. image: nginx
  6. volumes:
  7. - ./nginx.conf:/etc/nginx/nginx.conf:ro
  8. links:
  9. - app
  10. volumes_from:
  11. - app
  12. environment:
  13. - VIRTUAL_HOST
  14. networks:
  15. - traefik
  16. labels:
  17. traefik.docker.network: "traefik_default"
  18. traefik.port: "80"
  19. traefik.backend: "cloud"
  20. traefik.frontend.rule: "Host:cloud.kevinsztern.fr"
  21.  
  22. app:
  23. image: nextcloud:11-fpm
  24. links:
  25. - db
  26. volumes:
  27. - ./data/apps:/var/www/html/apps
  28. - ./data/config:/var/www/html/config
  29. - ./data/data:/var/www/html/data
  30. networks:
  31. - traefik
  32.  
  33. db:
  34. image: mysql
  35. volumes:
  36. - ./mysql/runtime:/var/lib/mysql
  37. environment:
  38. MYSQL_ROOT_PASSWORD: pwd
  39. networks:
  40. - traefik
  41.  
  42. cron:
  43. image: nextcloud:11-fpm
  44. links:
  45. - db
  46. volumes_from:
  47. - app
  48. user: www-data
  49. entrypoint: |
  50. bash -c 'bash -s <<EOF
  51. trap "break;exit" SIGHUP SIGINT SIGTERM
  52. while /bin/true; do
  53. /usr/local/bin/php /var/www/html/cron.php
  54. sleep 900
  55. done
  56. EOF'
  57. networks:
  58. - traefik
  59.  
  60. networks:
  61. traefik:
  62. external:
  63. name: traefik_default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement